Jump to content

User:ZI Jony/global.js

From Meta, a Wikimedia project coordination wiki

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.
//Test
mw.loader.load('//test.wikipedia.org/w/index.php?title=User:ZI_Jony/PageReplace.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ZI_Jony/Mover.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ZI_Jony/WikiFile_Transfer.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ZI_Jony/URLShortener.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ZI_Jony/MarkResolved.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ZI_Jony/coibot.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ZI_Jony/Links.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:ZI_Jony/Abuse_filter_helper.js&action=raw&ctype=text/javascript');

mw.loader.load( 'https://commons.wikimedia.org/w/index.php?title=User:Rillke/bigChunkedUpload.js&action=raw&ctype=text/javascript' );

mw.loader.load('https://en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=User:Kb03/scripts/proxychecker.js');

// Gives some useful links on user, user talk and user contribution pages
// [[File:Hoo man/useful_links.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tulsi Bhagat/useful links.js&action=raw&ctype=text/javascript');
if(typeof(usefulLinksConfig) == 'undefined') usefulLinksConfig = {};
usefulLinksConfig.useFoldedMenu = true;

/*
* Will pop-up a confirmation dialog when rollback link is clicked from Watchlist.
* Hit the "cancel" button if you had clicked Rollback accidentally and the edit will not be reverted.
* To install add importScript('User:Zvn/confirmwatchlistrollback.js'); to your monobook.js.
*/
 
function confirmWatchlistRollback()
{
    var wgCanonicalSpecialPageName = mw.config.get('wgCanonicalSpecialPageName');
	if(wgCanonicalSpecialPageName=='Watchlist' || wgCanonicalSpecialPageName=='Recentchanges')
	{
		var rollbackNodes;			
		if(!document.getElementsByClassName)
		{
			rollbackNodes=getElementsByClassName(document.getElementById("bodyContent"),"span","mw-rollback-link");
		}
		else
		{
			rollbackNodes=document.getElementsByClassName('mw-rollback-link');
		}
 		var rollbackclicked=function (e)
							{
								if(!e)
								{
									e=window.event;
								}
								if(!confirm("Are you sure you want to rollback this edit?"))
								{
									if(e.stopPropagation)
									{
										e.stopPropagation();
										e.preventDefault();
									}
									else
									{
										e.cancelBubble=true;
										e.returnValue=false;
									}
								}
 
							};
 
		for (var i=0;i<rollbackNodes.length;i++)
		{
	              if (rollbackNodes[i].childNodes[1]) rollbackNodes[i].childNodes[1].onclick=rollbackclicked;
		}
    }
 
}
 
$(confirmWatchlistRollback);

/* Global JavaScript
     Function importAnyScript() by Mike.lifeguard
*/
function importAnyScript(lang,family,script) {
    //use importScriptURI with the full-qualified source, else importScript(); runs in the context of the remote wiki, finding nothing.
	mw.loader.load('https://'
		+ encodeURIComponent(lang) + '.'
		+ encodeURIComponent(family) + '.org/w/index.php?title='
		+ encodeURIComponent(script) + '&action=raw&ctype=text/javascript');
}

importAnyScript('meta','wikimedia','User:Quentinv57/HideButtonsFromNonGsProjects.js');

// Provides several useful functions for rollback (custom edit summary, mark as bot edits and mass revert)
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Smart_rollback>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');


// Shows the number of active sysops
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/active_sysops.js>
// [[File:Hoo man/active_sysops.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js&action=raw&ctype=text/javascript');

mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair_rand/checksitelinks.js&action=raw&ctype=text/javascript"); // [[d:User:Yair rand/checksitelinks.js]]

mw.loader.load('//www.mediawiki.org/w/index.php?title=XTools/ArticleInfo.js&action=raw&ctype=text/javascript');

mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript");

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Script/massMover.js&action=raw&ctype=text/javascript');

mw.loader.load( 'https://commons.wikimedia.org/w/index.php?title=User:ZI Jony/userwarn.js&action=raw&ctype=text/javascript' );

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Script/wikidata-coord.js&action=raw&ctype=text/javascript');
window.catALotPrefs = {editpages:  true};
mw.loader.using(['mediawiki.util']).done(function(){
  mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Cat-a-lot.js&action=raw&ctype=text/javascript');
  mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Cat-a-lot.css&action=raw&ctype=text/css', 'text/css');
});

mw.loader.load('https://meta.wikimedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:MoreMenu.import.js');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Script/findAndreplace.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Tulsi_Bhagat/swviewer.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/OneClickCommoniser.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Xiplus/TwinkleGlobal.js&action=raw&ctype=text/javascript');

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');

mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );
var autoFormatterButtonLabel = 'Auto-Format';

mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/cleanDiff.js&action=raw&ctype=text/javascript' );

mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js/Beta.js&action=raw&ctype=text/javascript' );

mw.loader.load('//en.wikipedia.org/w/index.php?title=Wikipedia:AutoEd/complete.js&action=raw&ctype=text/javascript');

// [[File:Krinkle_RTRC.js]]
(mw.loader.getState('ext.gadget.rtrc') ? mw.loader.load('ext.gadget.rtrc') : mw.loader.load('https://www.mediawiki.org/w/load.php?modules=ext.gadget.rtrc&lang=' + mw.config.get('wgUserLanguage', 'en')));

// permalink-collector
mw.loader.load('//ko.wikipedia.org/w/index.php?title=User:IRTC1015/copyReasonLink.js&oldid=20823911&action=raw&ctype=text/javascript');

//Preloads common deletion reasons for crosswiki use
// [[File:Snowolf_GS_delete.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Snowolf/GS_delete.js&oldid=11188499&action=raw&ctype=text/javascript');

// Writ Keeper's revdel heaven
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/massRevdel.js&oldid=937039252&action=raw&ctype=text/javascript');

// [[File:Krinkle_CVNSimpleOverlay_wiki.js]]
// DON'T UPDATE THIS ONE!!!!!!!
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Scripts/CVNSimpleOverlay_wiki.js&oldid=18174822&action=raw&ctype=text/javascript');
// ^ Skip revision 18523572 (05:21, 27 October 2018) onwards for now

/**
 * Ajax sysop
 * @see https://meta.wikimedia.org/wiki/Ajax_sysop
 * @update-token [[File:pathoschild/ajaxsysop.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.ajaxsysop.js');

/**
 * Forces left-to-right layout and editing on RTL wikis.
 * @see https://meta.wikimedia.org/wiki/Force_ltr
 * @update-token [[File:pathoschild/forceltr.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js');

/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see [[meta:TemplateScript]]
 * @update-token [[File:Pathoschild/templatescript.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');

window.GlobalWatchlistConfig = { "anonFilter": 0, "botFilter": 0, "confirmAllSites": true, "fastMode": false, "groupPage": true, "minorFilter": 0, "showEdits": true, "showLogEntries": true, "showNewPages": true, "sites": [  "bn.wikipedia",  "www.wikidata",  "commons.wikimedia",  "meta.wikimedia",  "en.wikipedia",  "bd.wikimedia",  "bn.wikibooks",  "bn.wikisource",  "bn.wiktionary",  "bn.wikivoyage" ] };
window.GlobalWatchlistConfig = { "anonFilter": 0, "botFilter": 0, "confirmAllSites": true, "fastMode": false, "groupPage": true, "minorFilter": 0, "showEdits": true, "showLogEntries": true, "showNewPages": true, "sites": [  "bn.wikipedia",  "www.wikidata",  "commons.wikimedia",  "meta.wikimedia",  "en.wikipedia",  "bd.wikimedia",  "bn.wikibooks",  "bn.wikisource",  "bn.wiktionary",  "bn.wikivoyage" ] };
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:DannyS712/Global watchlist/stable.js&action=raw&ctype=text/javascript');

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:PleaseStand/userinfo.js&action=raw&ctype=text/javascript');

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Numbermaniac/goToTop.js&action=raw&ctype=text/javascript');

mw.loader.load('//he.wikipedia.org/w/index.php?title=Mediawiki:Gadget-autocomplete.js&action=raw&ctype=text/javascript');

if ( mw.config.get("wgDBname") !== 'ruwiki')
    mediaWiki.loader.load( '//ru.wikipedia.org/w/index.php?title=MediaWiki:WEF_AllEditors.js&action=raw&ctype=text/javascript' );

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Jayprakash12345/qrcode-svg.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Indic-TechCom/Script/insertWDImage.js&action=raw&ctype=text/javascript');

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Tools/Global_SUL.js&action=raw&ctype=text/javascript');

mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/WPBannerNavbar.js&action=raw&ctype=text/javascript');

mw.loader.load('https://meta.wikimedia.org/w/index.php?title=User:TenWhile6/XReport.js&action=raw&ctype=text/javascript');


if (mw.config.get('wgNamespaceNumber') === 6 && /SVG/i.test(mw.config.get('wgTitle').slice(-3))) // SVGedit on SVG files only
    mw.loader.load( '//commons.wikimedia.org/w/index.php?title=User:Rillke/SVGedit.js&action=raw&ctype=text/javascript' );