User:Bleeng/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
![]() | The accompanying .css page for this skin can be added at User:Bleeng/common.css. |
importScript( 'User:Enterprisey/diff-context.js' ); // Backlink: [[User:Enterprisey/diff-context.js]]
importScript('User:Equazcion/LiveDiffLink.js'); //Linkback: [[User:Equazcion/LiveDiffLink]]
mw.loader.load( '//de.wikipedia.org/w/index.php?title=Benutzer:TMg/autoFormatter.js&action=raw&ctype=text/javascript' );
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
importScript('User:Lourdes/PageCuration.js'); // Backlink: [[User:Lourdes/PageCuration.js]]
importScript('User:The Earwig/copyvios.js');
importScript('User:Ohconfucius/script/MOSNUM dates.js');//Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
mw.loader.load("//www.wikidata.org/w/index.php?title=User:Yair rand/WikidataInfo.js&action=raw&ctype=text/javascript"); // Backlink: [[d:User:Yair rand/WikidataInfo.js]]
importScript( 'User:Enterprisey/easy-brfa.js' ); // Backlink: [[User:Enterprisey/easy-brfa.js]]
var SegregateRefsJsAllowConversion = true;
importScript("User:PleaseStand/segregate-refs.js");
importScript('User:Anomie/linkclassifier.js'); // Backlink: [[User:Anomie/linkclassifier.js]]
importStylesheet('User:Anomie/linkclassifier.css'); // Backlink: [[User:Anomie/linkclassifier.css]]
importScript( 'User:Enterprisey/cv-revdel.js' ); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:TheTVExpert/rmCloser.js'); // Backlink: [[User:TheTVExpert/rmCloser.js]]
mw.hook('wikipage.content').add(function() {
document.addEventListener("keyup", function (keyEvent) {
if (keyEvent.shiftKey && keyEvent.altKey && keyEvent.key == "I")
document.querySelector("#wpSummary").focus();
});
}); // to make alt+shift+i focus to the edit summary box. from [[User:Chlod]]
importScript('User:Mdaniels5757/markAdmins.js'); // Backlink: [[User:Mdaniels5757/markAdmins.js]]
window.markAdminCfg = {
groups: {
'vrt-permissions': { enabled: true },
}
};
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
var m2d_notification = "I've moved your article [[Draft:$1|$1]] to [[Wikipedia:Drafts|draftspace]]. This is because the article currently does not have sufficient [[Wikipedia:Reliable sources|reliable sources]] to remain published. Please make sure to read our guideline on reliable sources. Once your article has sufficient sourcing, feel free to submit it for review, or if you are confident, move it back to its original location. If you have any questions or would like any help, feel free to contact me! \~~\~~";
importScript('User:Amorymeltzer/userinfo.js'); // Backlink: [[User:Amorymeltzer/userinfo.js]]
importScript('User:Enterprisey/browser-notifs.js'); // Backlink: [[User:Enterprisey/browser-notifs.js]]
importScript('User:Writ Keeper/Scripts/elRemover.js'); // Backlink: [[User:Writ Keeper/Scripts/elRemover.js]]
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Blablubbs/rbk.js&action=raw&ctype=text/javascript" );
importScript('User:SD0001/DYK-helper.js'); // Backlink: [[User:SD0001/DYK-helper.js]]
importScript('User:Andy M. Wang/pageswap.js'); // Backlink: [[User:Andy M. Wang/pageswap.js]]
importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
window.OCALinkSize = 0.9;
window.hotcat_use_category_links = true;
mw.loader.load( '/w/index.php?title=User:%D7%A7%D7%99%D7%A4%D7%95%D7%93%D7%A0%D7%97%D7%A9/cat-a-lot.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:קיפודנחש/cat-a-lot.js]]
importScript('User:PrimeHunter/Source links.js'); // Backlink: [[User:PrimeHunter/Source links.js]]
importScript('User:Writ Keeper/Scripts/massRollback.js'); // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]
importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[user:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:Enterprisey/diff-permalink.js'); // Backlink: [[User:Enterprisey/diff-permalink.js]]
importScript('User:Elli/copy-section-link.js'); // Backlink: [[User:Elli/copy-section-link.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Novem Linguae/Scripts/DetectSNG.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectSNG.js]]
importScript('User:Novem Linguae/Scripts/NPPLinks.js'); // Backlink: [[User:Novem Linguae/Scripts/NPPLinks.js]]
importScript('User:Enterprisey/AFCRHS.js'); // Backlink: [[User:Enterprisey/AFCRHS.js]]
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
importScript('User:Novem Linguae/Scripts/MarkFreeUseRationale.js'); // Backlink: [[User:Novem Linguae/Scripts/MarkFreeUseRationale.js]]
window.copySectionLinkNoSquareBrackets=true;
importScript('User:MusikAnimal/userRightsManager.js'); // Backlink: [[User:MusikAnimal/userRightsManager.js]]
importScript('User:Enterprisey/unblock-review.js'); // Backlink: [[User:Enterprisey/unblock-review.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:WhitePhosphorus/js/all-in-one.js&action=raw&ctype=text/javascript');
importScript('User:GeneralNotability/spihelper.js'); // Backlink: [[User:GeneralNotability/spihelper.js]]
importScript('User:Enterprisey/url-select-revdel.js'); // Backlink: [[User:Enterprisey/url-select-revdel.js]]
importScript('User:The_Earwig/revdel-responder.js'); // Backlink: [[User:The_Earwig/revdel-responder.js]]
importScript('User:Þjarkur/NeverUseMobileVersion.js'); // Backlink: [[User:Þjarkur/NeverUseMobileVersion.js]]
//importScript('User:Elli/OneClickArchiver-sandbox.js'); // Backlink: [[User:Elli/OneClickArchiver-sandbox.js]]
importScript('User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js'); // Backlink: [[User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js]]
importScript('User:Theleekycauldron/DYK_promoter.js'); // Backlink: [[User:Theleekycauldron/DYK_promoter.js]]
importScript('User:Ingenuity/AbuseFilterContribs.js'); // Backlink: [[User:Ingenuity/AbuseFilterContribs.js]]
importScript('User:GeneralNotability/mark-locked.js'); // Backlink: [[User:GeneralNotability/mark-locked.js]]
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript( 'User:Qwertyytrewqqwerty/DisamAssist.js' ); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[user:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]
importScript('User:Zhaofeng Li/Reflinks.js'); // Backlink: [[User:Zhaofeng Li/Reflinks.js]]
importScript('User:10nm/beta.js'); // Backlink: [[User:10nm/beta.js]]
importScript('User:Aveaoz/AutoMobileRedirect.js'); // Backlink: [[User:Aveaoz/AutoMobileRedirect.js]]
importScript('User:Novem_Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem_Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:Novem_Linguae/Scripts/ReviewStatus.js'); // Backlink: [[User:Novem_Linguae/Scripts/ReviewStatus.js]]
importScript('User:GeneralNotability/ip-ext-info.js'); // Backlink: [[User:GeneralNotability/ip-ext-info.js]]
importScript('User:1234qwer1234qwer4/MyXfD.js'); // Backlink: [[User:1234qwer1234qwer4/MyXfD.js]]
importScript('User:Music1201/MyCSD.js'); // Backlink: [[User:Music1201/MyCSD.js]]
importScript('User:NguoiDungKhongDinhDanh/CopyvioChecker.js'); // Backlink: [[User:NguoiDungKhongDinhDanh/CopyvioChecker.js]]
importScript('User:Awesome_Aasim/xfdvote.js'); // Backlink: [[User:Awesome_Aasim/xfdvote.js]]
importScript('User:Evad37/MoveToDraft.js'); // Backlink: [[User:Evad37/MoveToDraft.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:PleaseStand/userinfo.js'); // Backlink: [[User:PleaseStand/userinfo.js]]
importScript('User:The Earwig/copyvios.js'); // Backlink: [[User:The Earwig/copyvios.js]]
importScript('User:Lourdes/Backlinks.js'); // Backlink: [[User:Lourdes/Backlinks.js]]
// Add WikiBlame launcher to the Tools menu
$(function () {
mw.util.addPortletLink(
"p-tb", // toolbox portlet
"http://ramselehof.de/wikipedia/wikiblame.php?user_lang=en&lang=" + mw.config.get('wgContentLanguage')
+ "&project=wikipedia&article=" + mw.config.get('wgPageName')
+ "&needle=&skipversions=0&ignorefirst=0&limit=500&searchmethod=int&order=desc&user=",
"WikiBlame" // link label
)});
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: [[User:Novem Linguae/Scripts/VoteCounter.js]]
importScript('User:Novem Linguae/Scripts/DetectSNG.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectSNG.js]]
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
importScript('User:Novem Linguae/Scripts/DetectPromo.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectPromo.js]]
importScript('User:Novem Linguae/Scripts/DetectG4G5.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectG4G5.js]]
importScript('User:Novem Linguae/Scripts/DontForgetG12.js'); // Backlink: [[User:Novem Linguae/Scripts/DontForgetG12.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.js]]
importScript('User:%C3%9Ejarkur/Highlight_recently_added_text.js'); // Backlink: [[User:%C3%9Ejarkur/Highlight_recently_added_text.js]]
importScript('User:BrandonXLF/GreenRedirects.js'); // Backlink: [[User:BrandonXLF/GreenRedirects.js]]
importScript('User:Novem_Linguae/Scripts/NPPLinks.js'); // Backlink: [[User:Novem_Linguae/Scripts/NPPLinks.js]]
importScript('User:Novem Linguae/Scripts/MarkFreeUseRationale.js'); // Backlink: [[User:Novem Linguae/Scripts/MarkFreeUseRationale.js]]
importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
importScript('User:Wugapodes/Capricorn.js'); // Backlink: [[User:Wugapodes/Capricorn.js]]
importScript('User:DreamRimmer/TBanHelper.js'); // Backlink: [[User:DreamRimmer/TBanHelper.js]]
importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
importScript('User:Nardog/PasteToCommons.js'); // Backlink: [[User:Nardog/PasteToCommons.js]]
importScript('User:Odie5533/SnipManager.user.js'); // Backlink: [[User:Odie5533/SnipManager.user.js]]
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:Kaniivel/RefConsolidate start.js'); // Backlink: [[User:Kaniivel/RefConsolidate start.js]]
importScript('User:Andrybak/Scripts/Unsigned helper.js'); // Backlink: [[User:Andrybak/Scripts/Unsigned helper.js]]
importScript('User:Writ Keeper/Scripts/deletionFinder.js'); // Backlink: [[User:Writ Keeper/Scripts/deletionFinder.js]]
importScript('User:PrimeHunter/Source links.js'); // Backlink: [[User:PrimeHunter/Source links.js]]
importScript('User:Alexis Jazz/Kill-It-With-Fire.js'); // Backlink: [[User:Alexis Jazz/Kill-It-With-Fire.js]]
importScript('User:Mdaniels5757/markAdmins.js'); // Backlink: [[User:Mdaniels5757/markAdmins.js]]
importScript('User:Nardog/MoveHistory.js'); // Backlink: [[User:Nardog/MoveHistory.js]]
importScript('User:Trappist the monk/HarvErrors.js'); // Backlink: [[User:Trappist the monk/HarvErrors.js]]
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Evad37/OneClickArchiver.js&action=raw&ctype=text/javascript" );
mw.loader.load( '//ja.wikipedia.org/w/index.php?title=User:Waiesu/Clock.js&action=raw&ctype=text/javascript' );
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript( 'User:MPGuy2824/MoveToDraft.js' )
importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]
importScript('User:SD0001/DYK-helper.js'); // Backlink: [[User:SD0001/DYK-helper.js]]
importScript('User:BrandonXLF/HotDefaultSort.js'); // [[User:BrandonXLF/HotDefaultSort.js]]
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
//importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]]
importScript( 'User:Novem Linguae/Scripts/UserHighlighterSimple.js' ); // Backlink: [[User:Novem Linguae/Scripts/UserHighlighterSimple.js]]
importScript('User:Novem Linguae/Scripts/DraftCleaner.js'); // Backlink: [[User:Novem Linguae/Scripts/DraftCleaner.js]]
importScript('User:UncleDouggie/smart_watchlist.js'); // Backlink: [[User:UncleDouggie/smart_watchlist]]
importScript('User:Enterprisey/delsort.js'); // Backlink: [[User:Enterprisey/delsort.js]]
importScript("User:Animum/easyblock.js"); //[[User:Animum/easyblock.js]]
importScript('User:GeneralNotability/spihelper.js'); // Backlink: [[User:GeneralNotability/spihelper.js]]
importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/SpamUserPage.js]]
importScript('User:DaxServer/DiscussionCloser.js'); // Backlink: [[User:DaxServer/DiscussionCloser.js]]
importScript('User:Novem Linguae/Scripts/UnblockReview.js'); // Backlink: [[User:Novem Linguae/Scripts/UnblockReview.js]]
importScript('User:SD0001/RFUD-helper.js'); // Backlink: [[User:SD0001/RFUD-helper.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:GrabUp/External Links Remover.js'); // Backlink: [[User:GrabUp/External Links Remover.js]]
importScript('User:Enterprisey/url-select-revdel.js'); // Backlink: [[User:Enterprisey/url-select-revdel.js]]
importScript('User:GeneralNotability/mark-locked.js'); // Backlink: [[User:GeneralNotability/mark-locked.js]]
importScript('User:RoySmith/tag-check.js'); // Backlink: [[User:RoySmith/tag-check.js]]
importScript('User:Writ Keeper/Scripts/cuStaleness.js'); // Backlink: [[User:Writ Keeper/Scripts/cuStaleness.js]]
importScript('User:Writ Keeper/Scripts/sockStaleness.js'); // Backlink: [[User:Writ Keeper/Scripts/sockStaleness.js]]
importScript('User:N8wilson/AQFetcher.js'); // Linkback: [[User:N8wilson/AQFetcher.js]]
importStylesheet('User:Stephen/AQFetcher.css'); // Linkback: [[User:N8wilson/AQFetcher.css]]
// importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
importScript('User:Evad37/rater.js'); // [[User:Evad37/rater]]
importScript ('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft]]
importScript( 'User:Technical_13/Scripts/OneClickArchiver.js' ); // Backlink: [[User:Technical_13/Scripts/OneClickArchiver]]
importScript('User:Lourdes/PageCuration.js'); // Linkback: [[User:Lourdes/PageCuration.js]
importScript('User:SD0001/StubSorter.js'); // [[User:SD0001/StubSorter.js]]
importScript( 'User:EnterpriseyBot/delsort.js' ); // Backlink: [[User:EnterpriseyBot/delsort.js]]
importScript('User:SD0001/BDCS.js'); // [[User:SD0001/BDCS.js]]
importScript( 'User:Enterprisey/reply-link.js' ); // Backlink: [[User:Enterprisey/reply-link.js]]
importScript( 'User:Ahecht/Scripts/pageswap.js' ); // Backlink: [[User:Ahecht/Scripts/pageswap]]
importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/Draftify.js]]
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Linkback: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript("User:Writ Keeper/Scripts/teahouseUtility.js"); // Gives one-click option to add Teahouse invitation or talkback to a user
importScript("User:Writ Keeper/Scripts/teahouseTalkback.js"); // Adds Talkback reminder when you save an edit at the Teahouse
importScript("User:Writ Keeper/Scripts/teahouseTalkbackLink.js"); // Adds a talkback link to signatures on the Teahouse
importScript("User:Ocaasi/WikiLoveinstallscript.js");// Adds Teahouse Badges to WikiLove
importScript('User:Lupin/recent2.js');
importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/Draftify.js]]
importScript("User:Awesome Aasim/xfdvote.js");
mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:Plastikspork/massmove.js&action=raw&ctype=text/javascript' ); //[[User:Plastikspork/massmove.js]]
mw.util.addPortletLink("p-tb", "//en.wikipedia.org/wiki/Special:Massmove", "Mass move", "p-massmove", "Mass move");
importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: [[User:DannyS712/DiscussionCloser.js]]
importScript('User:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[User:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('user:Qwertyytrewqqwerty/DisamAssist.js'); // Backlink: [[user:Qwertyytrewqqwerty/DisamAssist.js]]
importScript('User:SD0001/DYK-helper.js'); // Backlink: [[User:SD0001/DYK-helper.js]]
importScript('User:BrandonXLF/SubpageMover.js'); // Backlink: [[User:BrandonXLF/SubpageMover.js]]
importScript('User:BrandonXLF/HotDefaultSort.js'); // Backlink: [[User:BrandonXLF/HotDefaultSort.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
// Add [[WP:Reflinks]] launcher in the toolbox on left
$.when( mw.loader.using( ['mediawiki.util'] ), $.ready ).then(function () {
mw.util.addPortletLink(
"p-tb", // toolbox portlet
"http://69.142.160.183/~dispenser/cgi-bin/reflinks.py?lang=" + mw.config.get('wgContentLanguage')
+ "&page=" + mw.config.get('wgPageName') + "&autoclick=wpPreview", // updated tool URL as of 27 December 2020
"Reflinks" // link label
)});
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:Trappist the monk/HarvErrors.js'); // Backlink: [[User:Trappist the monk/HarvErrors.js]]
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js');
importScript('User:PhantomTech/scripts/AFCRHS.js'); // Backlink: [[User:PhantomTech/scripts/AFCRHS.js]]
importScript('User:Enterprisey/AFCRHS.js'); // Backlink: [[User:Enterprisey/AFCRHS.js]]
importScript('user:theleekycauldron/DYK promoter.js'); // Backlink: [[user:theleekycauldron/DYK promoter.js]]
importScript('User:NguoiDungKhongDinhDanh/CopyvioChecker.js'); // Backlink: [[User:NguoiDungKhongDinhDanh/CopyvioChecker.js]]
importScript('User:BrandonXLF/ShowUserGender.js'); // [[User:BrandonXLF/ShowUserGender.js]]
importScript('User:Alexis Jazz/LuckyRename.js'); // Backlink: [[User:Alexis Jazz/LuckyRename.js]]
importScript('User:Eejit43/scripts/rmtr-helper.js'); // Backlink: [[User:Eejit43/scripts/rmtr-helper.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Enterprisey/rename-reason-fixer.js'); // Backlink: [[User:Enterprisey/rename-reason-fixer.js]]
importScript('User:Vikipolimer/Adiutor.js'); // Backlink: [[User:Vikipolimer/Adiutor.js]]
importScript('User:Writ Keeper/Scripts/massRollback.js'); // Backlink: [[User:Writ Keeper/Scripts/massRollback.js]]
importScript('User:Terasail/ArticleInfo.js'); // Backlink: [[User:Terasail/ArticleInfo.js]]
importScript('User:10nm/beta.js'); // Backlink: [[User:10nm/beta.js]]
// ========== Essential Wikipedia Tools for AfC & Draft Reviewing ==========
// 1. Pageviews Tool by MusikAnimal
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:MusikAnimal/pageviews.js&action=raw&ctype=text/javascript');
// 2. AfC Helper by Primefac (accept/decline UI)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Primefac/afchelper.js&action=raw&ctype=text/javascript');
// 3. RefToolbar Enhancer (better citation insertion)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Mr._Stradivarius/gadget-refToolbar.js&action=raw&ctype=text/javascript');
// 4. Quick Inline Edit (adds pencil icons for fast editing)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Perhelion/quick-edit.js&action=raw&ctype=text/javascript');
// 5. Copyvio Detector by Diannaa (advanced duplication checker)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Diannaa/copyvio-detector.js&action=raw&ctype=text/javascript');
// 6. Highlight AfC Comments (improves readability on submissions)
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:SDZeroBot/highlight-afc-comments.js&action=raw&ctype=text/javascript');
// ========== Optional: Writ Keeper’s Script Toolbar ==========
// Adds more admin/user tools (tagging, CSD, warnings, etc.)
// Uncomment below to enable
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/Scripts.js&action=raw&ctype=text/javascript');
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]mw.loader.load('/w/index.php?title=User:Lupin/recent2.js&action=raw&ctype=text/javascript'); // [[User:Lupin/recent2.js]]
mw.loader.using('mediawiki.util').then(function () {
mw.util.addPortletLink('p-tb', '/wiki/Special:Log/newusers', '🧑💻 New User Log');
});
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');
mw.loader.using('mediawiki.util').then(function () {
mw.util.addPortletLink('p-tb', '/wiki/Wikipedia:Teahouse', 'Visit Teahouse');
});
var nup_http;
var nup_enabled;
var nup_num_pages;
var nup_refresh;
$( nup_init );
/* initalise */
function nup_init() {
// allow user settings through
if(nup_enabled == null) {
nup_enabled = false;
}
if(nup_num_pages == null) {
nup_num_pages = 10;
}
if(nup_refresh == null) {
nup_refresh = 5;
}
// A few limits to be nice to the servers
if (nup_num_pages > 50) {
nup_num_pages = 50;
}
if (nup_num_pages < 1) {
nup_num_pages = 1;
}
if (nup_refresh < 2) {
nup_refresh = 2;
}
// get our cookie
if (document.cookie.length > 0) {
var c_start = document.cookie.indexOf("nup_show_box=");
if (c_start != -1) {
c_start = c_start + 13;
var c_end = document.cookie.indexOf(";", c_start);
if (c_end == -1) {
c_end = document.cookie.length;
}
if (document.cookie.substring(c_start, c_end) == "yes") {
nup_enabled = true;
} else {
nup_enabled = false;
}
}
}
// Either make a request or show nothing
if (nup_enabled == true) {
nup_ajax_request();
} else {
nup_draw_disabled_box();
}
}
/* init ajax */
function nup_create_request() {
try {
nup_http = new XMLHttpRequest();
} catch (e) {
try {
nup_http = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
nup_http = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {
alert("Your browser does not support AJAX!");
return false;
}
}
}
nup_http.onreadystatechange = function() {
if(nup_http.readyState == 4) nup_ajax_response();
}
return true;
}
/* make a request */
function nup_ajax_request() {
// check we are enabled
if (nup_enabled == false) return;
// firstly, inform the user
var cur_box = document.getElementById('p-newusers');
if (cur_box != null) {
cur_box.firstChild.firstChild.data = 'New Users (updating)';
}
if (nup_create_request () == false) {
if (cur_box != null) {
cur_box.firstChild.firstChild.data = 'New Users (update failed)';
} else {
alert ("There seems to be a problem using the NewUserPatrol script. I can't make AJAX objects, so I'm just going to complain. God Bless!");
}
}
// Then make the request
nup_http.open("GET", "/w/api.php?action=query&list=logevents&letype=newusers&format=xml&lelimit=" + nup_num_pages, true);
nup_http.send(null);
}
/* we have received a response */
function nup_ajax_response() {
var items = nup_http.responseXML.getElementsByTagName('item');
// create the div that holds all the newpage links
var link_div = document.createElement('div');
link_div.className = 'pBody';
var list = document.createElement('ul');
link_div.appendChild(list);
// populate the list with 10 links.
for (var i = 0; i < items.length; i++) {
var item_name = items[i].getAttribute('title').substring(5);
var item_url = 'http://en.wikipedia.org/w/index.php?title=User_Talk:' + item_name + '&action=edit§ion=new';
a = document.createElement('a');
a.setAttribute('href', item_url);
a.appendChild(document.createTextNode(item_name));
var li = document.createElement('li');
li.appendChild(a);
list.appendChild(li);
}
// Container div
var div = document.createElement('div');
div.setAttribute('id', 'p-newusers');
div.className = 'portlet';
var heading = document.createElement('h5');
heading.appendChild(document.createTextNode('New users'));
div.appendChild(heading);
div.appendChild(link_div);
// disable link
var p = document.createElement('p');
p.style.fontSize = 'x-small';
p.style.margin = '0px';
p.style.textAlign = 'right';
a = document.createElement('a');
a.appendChild(document.createTextNode('disable this box'));
a.onclick = nup_disable_box;
p.appendChild(a);
link_div.appendChild(p);
// now replace the div
var old_div = document.getElementById('p-newusers');
var side_col = document.getElementById('column-one');
if (old_div != null) {
side_col.replaceChild(div, old_div);
} else {
var node = document.getElementById('p-search');
side_col.insertBefore(div, node);
}
// and do it again in 5 secs
setTimeout("nup_ajax_request()", nup_refresh * 1000);
}
function nup_disable_box() {
nup_enabled = false;
nup_draw_disabled_box();
document.cookie = "nup_show_box=no; path=/";
}
function nup_enable_box() {
nup_enabled = true;
document.cookie = "nup_show_box=yes; path=/";
nup_ajax_request();
}
function nup_draw_disabled_box() {
// Container div
var link_div = document.createElement('div');
link_div.className = 'pBody';
var div = document.createElement('div');
div.setAttribute('id', 'p-newusers');
div.className = 'portlet';
var heading = document.createElement('h5');
heading.appendChild(document.createTextNode('New users'));
div.appendChild(heading);
div.appendChild(link_div);
// enable link
var p = document.createElement('p');
p.style.fontSize = 'x-small';
p.style.margin = '0px';
var a = document.createElement('a');
a.appendChild(document.createTextNode('enable this box'));
a.onclick = nup_enable_box;
p.appendChild(a);
link_div.appendChild(p);
// now replace the div
var old_div = document.getElementById('p-newusers');
var side_col = document.getElementById('column-one');
if (old_div != null) {
side_col.replaceChild(div, old_div);
} else {
var node = document.getElementById('p-search');
node.parentNode.insertBefore(div, node);
}
}