User:CrafterNova/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
//syntax highlighter
mw.loader.load('//www.mediawiki.org/w/index.php?title=MediaWiki%3AGadget-DotsSyntaxHighlighter.js&action=raw&ctype=text/javascript');

// this script will remove editing from every redlink
$(document).ready(function() {
	window.setInterval(()=> {
		$('a.new').each(function() {
			if (new URL(window.location.origin + $(this).attr("href")).searchParams.get("action")) {
				$(this).attr("href", function() {var url = new URL(window.location.origin + $(this).attr("href"));url.searchParams.delete("action");return url;});
			}
		});
		$('.new').each(function() {
			if (new URL(window.location.origin + $(this).find("a").attr("href")).searchParams.get("action")) {
				$(this).find("a").attr("href", function() {var url = new URL(window.location.origin + $(this).attr("href"));url.searchParams.delete("action");return url;});
			}
		});
	}, 100);
});

importScript('User:EnterpriseyBot/delsort.js'); // Backlink: [[User:EnterpriseyBot/delsort.js]]
importScript('User:Enterprisey/delsort.js'); // Backlink: [[User:Enterprisey/delsort.js]]
importScript('User:GeneralNotability/spihelper.js'); // Backlink: [[User:GeneralNotability/spihelper.js]]
importScript('User:Kephir/gadgets/rater.js'); // Backlink: [[User:Kephir/gadgets/rater.js]]
importScript('User:Lourdes/PageCuration.js'); // Backlink: [[User:Lourdes/PageCuration.js]]
importScript('User:Mr. Stradivarius/gadgets/ConfirmRollback.js'); // Backlink: [[User:Mr. Stradivarius/gadgets/ConfirmRollback.js]]
importScript('User:MusikAnimal/customWatchlists.js'); // Backlink: [[User:MusikAnimal/customWatchlists.js]]
importScript('User:MusikAnimal/userRightsManager.js'); // Backlink: [[User:MusikAnimal/userRightsManager.js]]
importScript('User:Ohconfucius/script/Common Terms.js'); // Backlink: [[User:Ohconfucius/script/Common Terms.js]]
importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Ohconfucius/script/Sources.js'); // Backlink: [[User:Ohconfucius/script/Sources.js]]
importScript('User:Ohconfucius/script/flagcruft.js'); // Backlink: [[User:Ohconfucius/script/flagcruft.js]]
importScript('User:Ohconfucius/script/formatgeneral.js'); // Backlink: [[User:Ohconfucius/script/formatgeneral.js]]
importScript('User:Technical_13/Scripts/OneClickArchiver.js'); // Backlink: [[User:Technical_13/Scripts/OneClickArchiver.js]]
importScript('User:Trappist the monk/common.js'); // Backlink: [[User:Trappist the monk/common.js]]
importScript('User:Andy M. Wang/pageswap.js'); // Backlink: [[User:Andy M. Wang/pageswap.js]]

mw.loader.load('/w/index.php?title=User:Lupin/recent2.js&action=raw&ctype=text/javascript');

importScript('User:Galobtter/Shortdesc helper.js'); // Backlink: [[User:Galobtter/Shortdesc helper.js]]
importScript('User:GhostInTheMachine/SDlinkBuilder.js'); // Backlink: [[User:GhostInTheMachine/SDlinkBuilder.js]]

/*

Modified from https://fr.wikipedia.org/wiki/Utilisateur:PAC2/chouette.js

*/

mw.loader.using('mediawiki.util', function () {
	var mobile_revert = function($){
		 var currentpage = 'https://en.m.wikipedia.org/wiki/' +  mw.config.get( 'wgPageName' ) ; 
		 var revert = 'https://en.m.wikipedia.org/w/index.php?title=' + mw.config.get( 'wgRelevantPageName' ) + '&action=edit&undoafter=' + mw.config.get('wgRevisionId') + '&undo=' + mw.config.get('wgCurRevisionId') ;
		 $("#mw-revision-nav").after("<div><a href=" + currentpage + " data-title='currentpage'>View the latest version</a> - <a href=" + revert + " data-title='revert'>Restore this version</a></div>") ; 
	} ;
	$(document).ready(mobile_revert) ;
});

importScript('User:Anomie/pagestats.js'); // Backlink: [[User:Anomie/pagestats.js]]
importScript('User:Anomie/diffcur.js'); // Backlink: [[User:Anomie/diffcur.js]]
importScript('User:Enterprisey/StatusChanger.js'); // Backlink: [[User:Enterprisey/StatusChanger.js]]
importScript('User:Awesome Aasim/noeditredlinks.js'); // Backlink: [[User:Awesome Aasim/noeditredlinks.js]]
//importScript('User:Volker E. (WMF)/dark-mode.js'); // Backlink: [[User:Volker E. (WMF)/dark-mode.js]]

mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AUziel302%2Ftypo.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3AZhaofeng_Li%2FReflinks.js&action=raw&ctype=text/javascript');
//mw.loader.load('//meta.wikimedia.org/wiki/User:CrafterNova/global.js&action=raw&ctype=text/javascript');

importScript('User:Naypta/ScriptInstaller.js'); // Backlink: [[User:Naypta/ScriptInstaller.js]]
importScript('User:Fred_Gandt/confirmLogout.js'); // Backlink: [[User:Fred_Gandt/confirmLogout.js]]
importScript('User:Danski454/goToTop.js'); // Backlink: [[User:Danski454/goToTop.js]]
importScript('User:Evad37/livenotifications.js'); // Backlink: [[User:Evad37/livenotifications.js]]
importScript('User:MusikAnimal/nightpedia.js'); // Backlink: [[User:MusikAnimal/nightpedia.js]]
importScript('User:Awesome_Aasim/noeditredlinks.js'); // Backlink: [[User:Awesome_Aasim/noeditredlinks.js]]
importScript('User:BrandonXLF/PortletLinks.js'); // Backlink: [[User:BrandonXLF/PortletLinks.js]]
importScript('User:MusikAnimal/scriptManager.js'); // Backlink: [[User:MusikAnimal/scriptManager.js]]
importScript('User:Enterprisey/superjump.js'); // Backlink: [[User:Enterprisey/superjump.js]]
importScript('User:BrandonXLF/Invert.js'); // Backlink: [[User:BrandonXLF/Invert.js]]
importScript('User:BrandonXLF/TodoList.js'); // Backlink: [[User:BrandonXLF/TodoList.js]]
importScript('User:BrandonXLF/UpdateNotifications.js'); // Backlink: [[User:BrandonXLF/UpdateNotifications.js]]
importScript('User:Majavah/Unslashifier.js'); // Backlink: [[User:Majavah/Unslashifier.js]]
importScript('User:Caburum/UTCclock.js'); // Backlink: [[User:Caburum/UTCclock.js]]
importScript('User:Novem_Linguae/Scripts/VisualEditorEverywhere.js'); // Backlink: [[User:Novem_Linguae/Scripts/VisualEditorEverywhere.js]]
importScript('User:Ais523/watchlistnotifier.js'); // Backlink: [[User:Ais523/watchlistnotifier.js]]
importScript('User:Enterprisey/watchlist-notice.js'); // Backlink: [[User:Enterprisey/watchlist-notice.js]]
importScript('User:The_Voidwalker/alwaysEditSectionLink.js'); // Backlink: [[User:The_Voidwalker/alwaysEditSectionLink.js]]
importScript('User:Enterprisey/copy-section-link.js'); // Backlink: [[User:Enterprisey/copy-section-link.js]]
importScript('User:MJL/Archer.js'); // Backlink: [[User:MJL/Archer.js]]
importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[user:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:Bradv/Scripts/WhatLinksHereSnippets.js'); // Backlink: [[User:Bradv/Scripts/WhatLinksHereSnippets.js]]
importScript('User:Bradv/endlesscontribs.js'); // Backlink: [[User:Bradv/endlesscontribs.js]]
importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
importScript('User:Evad37/MoveToDraft.js'); // Backlink: [[User:Evad37/MoveToDraft.js]]
importScript('User:CrafterNova/vector-2022.js'); // Backlink: [[User:CrafterNova/vector-2022.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFrietjes%2Ffindargdups.js&action=raw&ctype=text/javascript');
importScript('User:BrownHairedGirl/linkrot.js'); // Backlink: [[User:BrownHairedGirl/linkrot.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3APerfektesChaos%2Fjs%2FlintHint%2Fr.js&action=raw&ctype=text/javascript');
importScript('User:Smith609/toolbox.js'); // Backlink: [[User:Smith609/toolbox.js]]
importScript('User:Dr_pda/prosesize.js'); // Backlink: [[User:Dr_pda/prosesize.js]]
mw.loader.load('https://pedia.sztaki.hu/SztakipediaToolbar/SztakipediaToolbarBase.js');
mw.loader.load('https://pedia.sztaki.hu/SztakipediaToolbar/SztakipediaToolbar.js');
importScript('User:Yair rand/ReferenceTooltips.js'); // Backlink: [[User:Yair rand/ReferenceTooltips.js]]
importScript('User:Ilmari Karonen/rollbacksummary.js'); // Backlink: [[User:Ilmari Karonen/rollbacksummary.js]]
importScript('User:Anomie/linkclassifier.js'); // Backlink: [[User:Anomie/linkclassifier.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:Dr pda/prosesize.js'); // Backlink: [[User:Dr pda/prosesize.js]]

//[[Benutzer:Schnark/js/diff.js/core.js]]
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer%3ASchnark%2Fjs%2Fdiff.js%2Fcore.js&action=raw&ctype=text/javascript');
//[[Benutzer:Schnark/js/bandersnatch.js]]

importScript('User:Wugapodes/Capricorn.js'); // Backlink: [[User:Wugapodes/Capricorn.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:BrownHairedGirl/BareURLinline.js'); // Backlink: [[User:BrownHairedGirl/BareURLinline.js]]
importScript('User:GregU/dashes.js'); // Backlink: [[User:GregU/dashes.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:Gary/nominations viewer.js'); // Backlink: [[User:Gary/nominations viewer.js]]
importScript('User:Ebrahames/Advisor.js'); // Backlink: [[User:Ebrahames/Advisor.js]]
importScript('User:DannyS712/Draft no cat.js'); // Backlink: [[User:DannyS712/Draft no cat.js]]
importScript('User:DannyS712/Draft re cat.js'); // Backlink: [[User:DannyS712/Draft re cat.js]]
importScript('User:Σ/Testing facility/Archiver.js'); // Backlink: [[User:Σ/Testing facility/Archiver.js]]
importScript('User:NuclearWarfare/Mark-blocked script.js'); // Backlink: [[User:NuclearWarfare/Mark-blocked script.js]]
importScript('User:Enterprisey/userinfo.js'); // Backlink: [[User:Enterprisey/userinfo.js]]
importScript('User:Ale jrb/Scripts/statusCheck.js'); // Backlink: [[User:Ale jrb/Scripts/statusCheck.js]]
importScript('User:Enterprisey/unblock-review.js'); // Backlink: [[User:Enterprisey/unblock-review.js]]
importScript('User:DannyS712/SectionRemover.js'); // Backlink: [[User:DannyS712/SectionRemover.js]]
importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: [[User:DannyS712/DiscussionCloser.js]]
importScript('User:Amalthea/culoghelper.js'); // Backlink: [[User:Amalthea/culoghelper.js]]
	// Adds a link to the CU log for the date/time that the check was executed
importScript('User:Writ Keeper/Scripts/sockStaleness.js'); // Backlink: [[User:Writ Keeper/Scripts/sockStaleness.js]]
importScript('User:Writ Keeper/Scripts/cuStaleness.js'); // Backlink: [[User:Writ Keeper/Scripts/cuStaleness.js]]
	//The two scripts above indicate if a suspected sock is 'stale', or outside of 90 days at SPI or a suspected sock category
importScript('User:ST47/cu-log-links.js'); // Backlink: [[User:ST47/cu-log-links.js]]
	//Adds links to Whois, IPCheck, etc to CU results
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3ALadsgroup%2FCheckUserHelper.js&action=raw&ctype=text/javascript');
	//FANTASTIC SCRIPT! Adds a table of CU results to the top of the 'get edits' page.
importScript('User:GeneralNotability/spihelper.js'); // Backlink: [[User:GeneralNotability/spihelper.js]]
	//Helps file / close / do SPI things. Another FANTASTIC SCRIPT
importScript('User:Firefly/checkuseragenthelper.js'); // Backlink: [[User:Firefly/checkuseragenthelper.js]]
	//Tooltips explaining user agents
importScript('User:GeneralNotability/cumarkips.js'); // Backlink: [[User:GeneralNotability/cumarkips.js]]
	//Marks important IP's like congress / etc.
importScript('User:GeneralNotability/InvestorGoat.js'); // Backlink: [[User:GeneralNotability/InvestorGoat.js]]
	//Indicates matching user agents. Might do things with goats.
importScript('User:GeneralNotability/ip-ext-info.js'); // Backlink: [[User:GeneralNotability/ip-ext-info.js]]
	//Adds a bullseye link to IP's
importScript('User:Enterprisey/easy-brfa.js'); // Backlink: [[User:Enterprisey/easy-brfa.js]]
importScript('User:SQL/acimplnotes.js'); // Backlink: [[User:SQL/acimplnotes.js]]
importScript('User:L235/wordcount.js'); // Backlink: [[User:L235/wordcount.js]]
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ATimotheus%20Canens%2Facimplnotes.js&action=raw&ctype=text/javascript');
importScript('User:L235/wordAndLinkCounter.js'); // Backlink: [[User:L235/wordAndLinkCounter.js]]
importScript('User:Enterprisey/more-listing-items.js'); // Backlink: [[User:Enterprisey/more-listing-items.js]]
importScript('User:Eizzen/AutoPurge.js'); // Backlink: [[User:Eizzen/AutoPurge.js]]
importScript('User:Salix alba/Citoid.js'); // Backlink: [[User:Salix alba/Citoid.js]]
importScript('User:Frietjes/findargdups.js'); // Backlink: [[User:Frietjes/findargdups.js]]
importScript('User:Bradv/Scripts/Notepad.js'); // Backlink: [[User:Bradv/Scripts/Notepad.js]]
importScript('User:Enterprisey/undo-last-edit.js'); // Backlink: [[User:Enterprisey/undo-last-edit.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:GeneralNotability/mark-locked.js'); // Backlink: [[User:GeneralNotability/mark-locked.js]]
importScript('User:Awesome Aasim/infiniscroll.js'); // Backlink: [[User:Awesome Aasim/infiniscroll.js]]
importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: [[User:Novem Linguae/Scripts/VoteCounter.js]]
importScript('User:Novem Linguae/Scripts/UserRightsDiff.js'); // Backlink: [[User:Novem Linguae/Scripts/UserRightsDiff.js]]
importScript('User:Macy/FastButtons.js'); // Backlink: [[User:Macy/FastButtons.js]]