מדיה ויקי:BookmarkletsInit.js – הבדלי גרסאות
אין תקציר עריכה |
אין תקציר עריכה |
||
| (23 גרסאות ביניים של 5 משתמשים אינן מוצגות) | |||
| שורה 8: | שורה 8: | ||
"javascript:(function(){if(typeof(", | "javascript:(function(){if(typeof(", | ||
")=='undefined'){var s=document.createElement('script');s.setAttribute('src','//chabadpedia.co.il/index.php?title= ", | ")=='undefined'){var s=document.createElement('script');s.setAttribute('src','//chabadpedia.co.il/index.php?title= ", | ||
"&action=raw&maxage=3600&ctype=text/javascript&dontcountme=s');document.getElementsByTagName(' | "&action=raw&maxage=3600&ctype=text/javascript&dontcountme=s');document.getElementsByTagName('head')[0].appendChild(s);}else ", | ||
"();})()" | "();})()" | ||
]; | ]; | ||
| שורה 15: | שורה 15: | ||
{ | { | ||
func: 'wikiit', | func: 'wikiit', | ||
sourcepage: 'MediaWiki: | sourcepage: 'MediaWiki:Common.js/externalsmaker.js', | ||
name: 'תבנית לחב"דפדיה', | name: 'תבנית לחב"דפדיה', | ||
description: ' | description: ' ' | ||
} | } | ||
]; | ]; | ||
bookmarkletsWrong = function ( e ) { | |||
e.preventDefault(); | |||
alert( 'את הקישור יש לגרור לסרגל המועדפים, ולהפעיל באתרים המתאימים.' + | |||
'\nקישור זה לא מיועד להפעלה מתוך חב"דפדיה. למידע נוסף קראו את ההוראות בדף.' | |||
); | |||
}; | |||
$bookmarkletsList.empty(); | $bookmarkletsList.empty(); | ||
| שורה 40: | שורה 47: | ||
$bookmarkletsList.append( $item ); | $bookmarkletsList.append( $item ); | ||
} ); | } ); | ||
} )(); | } )(); | ||