User:LaMagiaaa/global.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
//https://arz.wikipedia.org/w/index.php?title=%D9%85%D9%8A%D8%AF%D9%8A%D8%A7%D9%88%D9%8A%D9%83%D9%89:Common.js&oldid=984102
// Add purge menu + auto purge
if (mw.config.get('wgAction')==='purge'){$('form[action*="action=purge"]').submit();}
mw.util.addPortletLink ('p-cactions','?action=purge','Purge');
pagename=mw.config.get('wgPageName').replace(/_/g, " ");
var d=$("<li>");
$("#p-views ul").append(d);
d.append(
$("<span>")
.append(
$("<a>")
.attr("href","/wiki/"+pagename+"?action=purge")
.attr("title","Purge")
.append(
$("<img>")
//.attr("src","//upload.wikimedia.org/wikipedia/commons/1/10/Reload_icon_-_Green.svg")
//.attr("style","margin-bottom:5px; width:18px;height:auto;margin-top:-5px")
)
)
);
if (mw.config.get( 'skin' )=='minerva'){ // Only add to minerva skin
var d=$("<li>");
$("#p-tb").append(d);
d.append(
$("<span>")
.append(
$("<a>")
.attr("href","/wiki/"+pagename+"?action=purge")
.attr("title","Purge")
.addClass("toggle-list-item__anchor mw-ui-icon-before mw-ui-icon mw-ui-icon-before")
.append(
$("<img>")
.attr("src","//upload.wikimedia.org/wikipedia/commons/1/17/OOjs_UI_icon_reload.svg")
.attr("style","margin-right:-32px;width:22px;height:auto;")
)
.append(
$("<span>")
.addClass("toggle-list-item__icon")
.attr("style","position:relative;top:-8px!important;padding-right:14px")
.append(
$("<span>")
.addClass("toggle-list-item__label")
.text("Purge")
.attr("style","position:relative;top:-3px!important;color:#00bfa5!important")
)
)
).addClass("toggle-list-item")
);
}
// End add purge menu + auto purge --//
//
//
//
//
//WikiDataID
if ( (mw.config.get("wgDBname") !== "wikidatawiki") && (mw.config.get("wgDBname") !== "testwikidatawiki") ) { // Don't work in Wikidata
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:LaMagiaaa/ShowWikidataid.js&action=raw&ctype=text/javascript');
}
//TwinkleGlobal
if ( (mw.config.get("wgDBname") !== "wikidatawiki")
&& (mw.config.get("wgDBname") !== "testwikidatawiki") // Don't work in Wikidata
&& (mw.config.get("wgDBname") !== "zhwiki") // Don't work in zhwiki
&& (mw.config.get("wgDBname") !== "enwiki") // Don't work in enwiki
) {
// Fork of Twinkle intended to work on as many wikis as possible
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/TwinkleGlobal.js&action=raw&ctype=text/javascript');
}
//Navigation Popups
if ( (mw.config.get("wgDBname") !== "wikidatawiki")
&& (mw.config.get("wgDBname") !== "testwikidatawiki") // Don't work in Wikidata
&& (mw.config.get("wgDBname") !== "zhwiki") // Don't work in zhwiki
&& (mw.config.get("wgDBname") !== "enwiki") // Don't work in enwiki
&& (mw.config.get("wgDBname") !== "jawiki") // Don't work in jawiki
&& (mw.config.get("wgDBname") !== "dewiki") // Don't work in dewiki
&& (mw.config.get("wgDBname") !== "kowiki") // Don't work in kowiki
) {
mw.loader.load( '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript' );
}
//editcounter(pl)
mw.loader.load('//pl.wikipedia.org/w/index.php?title=MediaWiki:Gadget-quickeditcounter.js&action=raw&ctype=text/javascript');
//HotCat
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
//Auto-Formatter
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );
//Интервики: переносить в начало списка
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:LaMagiaaa/lang.js&action=raw&ctype=text/javascript');
//mark rights
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:LaMagiaaa/markrights.js&action=raw&ctype=text/javascript');