משתמש:Neriah/common.js: הבדלים בין גרסאות בדף
קפיצה לניווט
קפיצה לחיפוש
(ייבוא מויקיפדיה + התאמה לאוצר) |
תגיות: החלפה ביטול |
||
שורה 1: | שורה 1: | ||
/* | /** This script contains the code required for loading [[User:Joeytje50/JWB.js]]. | ||
* All other code is located at that page. | |||
*/ | |||
//Idea by [[User:Epicgenius]] | |||
$.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function() { | |||
mw.util.addPortletLink("p-tb", mw.config.get('wgArticlePath').replace('$1', "Project:AutoWikiBrowser/Script"), "AWB אונליין", "tb-awbscript", "Run Javascript Wiki Browser"); | |||
}); | |||
function | |||
if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Project:AutoWikiBrowser/Script' && mw.config.get('wgAction') == 'view') | |||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js&action=raw&ctype=text/javascript'); | |||
גרסה מ־19:58, 25 במרץ 2021
/** This script contains the code required for loading [[User:Joeytje50/JWB.js]].
* All other code is located at that page.
*/
//Idea by [[User:Epicgenius]]
$.when(mw.loader.using(['mediawiki.util'], $.ready)).done( function() {
mw.util.addPortletLink("p-tb", mw.config.get('wgArticlePath').replace('$1', "Project:AutoWikiBrowser/Script"), "AWB אונליין", "tb-awbscript", "Run Javascript Wiki Browser");
});
if (mw.config.get('wgCanonicalNamespace')+':'+mw.config.get('wgTitle') === 'Project:AutoWikiBrowser/Script' && mw.config.get('wgAction') == 'view')
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js&action=raw&ctype=text/javascript');