User:Queen of Hearts/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 is at User:Queen of Hearts/common.css. |
// Enable caching for resource loads, see [[User:SD0001/Making_user_scripts_load_faster]], @revision 6
if(!/\bnocache=\b/.test(location.href)){let e=(e,t,n)=>(e=e.replace(/special:mypage/i,"User:"+mw.config.get("wgUserName")),$.get("https://"+t+"/w/api.php?titles="+e+"&origin=*&format=json&formatversion=2&uselang=content&maxage=86400&smaxage=86400&action=query&prop=revisions|info&rvprop=content&rvlimit=1").then((r=>{let o=r.query.pages[0];if(o.missing)return;let a=o.revisions[0].content;if(n&&"text/javascript"!==n||"javascript"!==o.contentmodel){if("text/css"!==n||"css"!==o.contentmodel)return $.Deferred().reject('Refused to load "'+e+'"@'+t+": content type mismatch");mw.loader.addStyleTag(a)}else{let e=document.createElement("script");e.innerHTML=a,document.head.appendChild(e)}}))),t=e=>{let t=/^(?:(?:https:)?\/\/(.*))?\/w\/index.php/.exec(e),n=/\btitle=([^=?&]*)/.exec(e);return t&&n&&/\baction=raw\b/.test(e)&&/\bctype=/.test(e)?[n[1],t[1]||mw.config.get("wgServerName")]:null};window.importScript=t=>{e(encodeURIComponent(t),mw.config.get("wgServerName"),"text/javascript")},window.importStyleSheet=t=>{e(encodeURIComponent(t),mw.config.get("wgServerName"),"text/css")};let n=mw.loader.load;mw.loader.load=function(r,o){let a=t(r);a?e(a[0],a[1],o):n.apply(mw.loader,[...arguments])};let r=mw.loader.getScript;mw.loader.getScript=function(n){let o=t(n);return o?e(o[0],o[1],"text/javascript"):r.apply(mw.loader,[...arguments])}}
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AUziel302%2Ftypo.js&action=raw&ctype=text/javascript');
importScript('User:SD0001/BDCS.js'); // Backlink: [[User:SD0001/BDCS.js]]
importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]
importScript('User:Ingenuity/AntiVandal.js'); // Backlink: [[User:Ingenuity/AntiVandal.js]]
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: [[User:DannyS712/DiscussionCloser.js]]
importScript('User:Awesome Aasim/rcpatrol.js'); // Backlink: [[User:Awesome Aasim/rcpatrol.js]]
$( function () {
var elems = document.getElementsByClassName('editsection'); // *** NOTE: ClassName may need to be 'mw-editsection' instead
for (i = 0; i < elems.length; i++) {
var span = document.createElement('span');
var link = document.createElement('a');
link.href = '#top';
link.appendChild(document.createTextNode('back to top'));
span.appendChild(document.createTextNode('['));
span.appendChild(link);
span.appendChild(document.createTextNode('] '));
elems[i].insertBefore(span, elems[i].firstChild);
}
});
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:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:Evad37/duplinks-alt.js'); // Backlink: [[User:Evad37/duplinks-alt.js]]
importScript('User:GoldenRing/wordcount.js'); // Backlink: [[User:GoldenRing/wordcount.js]]
importScript('User:Ohconfucius/script/Common Terms.js'); // Backlink: [[User:Ohconfucius/script/Common Terms.js]]
importScript('User:Evad37/Thanky.js'); // Backlink: [[User:Evad37/Thanky.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:Enterprisey/cv-revdel.js'); // Backlink: [[User:Enterprisey/cv-revdel.js]]
importScript('User:MusikAnimal/responseHelper.js'); // Backlink: [[User:MusikAnimal/responseHelper.js]]
importScript('User:SD0001/StubSorter.js'); // Backlink: [[User:SD0001/StubSorter.js]]
importScript('User:Gary/nominations viewer.js'); // Backlink: [[User:Gary/nominations viewer.js]]
importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Backlink: [[User:Mr. Stradivarius/gadgets/Draftify.js]]
importScript('User:Awesome Aasim/xfdvote.js'); // Backlink: [[User:Awesome Aasim/xfdvote.js]]
importScript('User:Eejit43/scripts/rmtr-helper.js'); // Backlink: [[User:Eejit43/scripts/rmtr-helper.js]]
importScript('User:Ahecht/Scripts/pageswap.js'); // Backlink: [[User:Ahecht/Scripts/pageswap.js]]
mw.loader.load('/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');
importScript('User:GeneralNotability/mark-locked.js'); // Backlink: [[User:GeneralNotability/mark-locked.js]]
importScript('User:Armbrust/closemrv.js'); // Backlink: [[User:Armbrust/closemrv.js]]
importScript('User:BrandonXLF/ReferenceExpander.js'); // Backlink: [[User:BrandonXLF/ReferenceExpander.js]]
importScript('User:Awesome Aasim/redirectcreator.js'); // Backlink: [[User:Awesome Aasim/redirectcreator.js]]
importScript('User:Qwerfjkl/scripts/CFDlister.js'); // Backlink: [[User:Qwerfjkl/scripts/CFDlister.js]]
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3AIndic-TechCom%2FScript%2FmassMover.js&action=raw&ctype=text/javascript');
importScript('User:Novem Linguae/Scripts/anrfc-lister.js'); // Backlink: [[User:Novem Linguae/Scripts/anrfc-lister.js]]
importScript('User:Shubinator/DYKcheck.js'); // Backlink: [[User:Shubinator/DYKcheck.js]]
importScript('User:The Earwig/copyvios.js'); // Backlink: [[User:The Earwig/copyvios.js]]
importScript('User:Xenocidic/statusChanger2.js'); // Backlink: [[User:Xenocidic/statusChanger2.js]]
importScript('User:DannyS712/Draft no cat.js'); // Backlink: [[User:DannyS712/Draft no cat.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
mw.loader.load('https://de.wikipedia.org/wiki/Benutzer:Schnark/js/bandersnatch.js?action=raw&ctype=text/javascript');
importScript('User:Bradv/Scripts/Superlinks.js'); // Backlink: [[User:Bradv/Scripts/Superlinks.js]]
importScript('User:Qwerfjkl/scripts/massCFD.js'); // Backlink: [[User:Qwerfjkl/scripts/massCFD.js]]
importScript('User:SD0001/shortdescs-in-category.js'); // Backlink: [[User:SD0001/shortdescs-in-category.js]]
importScript('User:DreamRimmer/BlankUserPage.js'); // Backlink: [[User:DreamRimmer/BlankUserPage.js]]
importScript('User:SD0001/GAN-helper.js'); // Backlink: [[User:SD0001/GAN-helper.js]]
window.popupStructure = 'menus';
window.popupFixRedirs = 'true';
window.popupFixDabs = 'true';
window.popupRedLinkRemoval = 'true';
importScript('User:Nardog/CatChangesViewer.js'); // Backlink: [[User:Nardog/CatChangesViewer.js]]
importScript('User:קיפודנחש/cat-a-lot.js'); // Backlink: [[User:קיפודנחש/cat-a-lot.js]]
importScript('User:Enterprisey/orcp-helper.js'); // Backlink: [[User:Enterprisey/orcp-helper.js]]
importScript('User:Novem Linguae/Scripts/DontForgetG12.js'); // Backlink: [[User:Novem Linguae/Scripts/DontForgetG12.js]]
importScript('User:Writ Keeper/rollbackSummary.js'); // Backlink: [[User:Writ Keeper/rollbackSummary.js]]
window.checkLinksToCitations = false;
importScript('User:BrandonXLF/HotDefaultSort.js'); // Backlink: [[User:BrandonXLF/HotDefaultSort.js]]
importScript('User:Epicgenius/rollback.js'); // Backlink: [[User:Epicgenius/rollback.js]]
importScript('User:Theleekycauldron/DYK_promoter.js'); // Backlink: [[User:Theleekycauldron/DYK_promoter.js]]
importScript('User:BrandonXLF/CollapseSections.js'); // Backlink: [[User:BrandonXLF/CollapseSections.js]]
importScript('User:Ohconfucius/script/MOSNUM dates.js'); // Backlink: [[User:Ohconfucius/script/MOSNUM dates.js]]
importScript('User:Schminnte/PageCuration.js'); // Backlink: [[User:Schminnte/PageCuration.js]]
var expansions = {
"wp:afd": "WP:Articles for deletion",
"wp:tfd": "WP:Templates for discussion",
"wp:cfd": "WP:Categories for discussion",
"wp:rfd": "WP:Redirects for discussion",
"wp:ffd": "WP:Files for discussion",
"wp:mfd": "WP:Miscellany for deletion",
"wp:drv": "WP:Deletion review",
"wp:mrv": "WP:Move review",
"wp:pr" : "WP:Peer review",
"wp:gar": "WP:Good article reassessment",
"wp:fac": "WP:Featured article candidates",
"wp:rfa": "WP:Requests for adminship",
"wp:rfb": "WP:Requests for bureaucratship",
"wp:rfc": "WP:Requests for comment",
"wp:brfa": "WP:Bots/Requests for approval",
"template:dykn": "Template:Did you know nominations",
// namespaces
"t": "Template",
"cat": "Category",
"u": "User",
"h": "Help"
};
importScript('User:Þjarkur/NeverUseMobileVersion.js'); // Backlink: [[User:Þjarkur/NeverUseMobileVersion.js]]
importScript('User:Enterprisey/simple-notifs.js'); // Backlink: [[User:Enterprisey/simple-notifs.js]]
importScript('User:Eizen/SkinSwitcher.js'); // Backlink: [[User:Eizen/SkinSwitcher.js]]
importScript('m:User:Aaron_Liu/v22.css'); // Backlink: [[m:User:Aaron_Liu/v22.css]]
importScript('User:Qwerfjkl/scripts/editRedirect.js'); // Backlink: [[User:Qwerfjkl/scripts/editRedirect.js]]
importScript('User:Enterprisey/section-redir-note.js'); // Backlink: [[User:Enterprisey/section-redir-note.js]]
importScript('User:DannyS712/copyvio-check.js'); // Backlink: [[User:DannyS712/copyvio-check.js]]
importScript('User:BrandonXLF/FindSources.js'); // Backlink: [[User:BrandonXLF/FindSources.js]]
importScript('User:Phlsph7/HighlightUnreferencedPassages.js'); // Backlink: [[User:Phlsph7/HighlightUnreferencedPassages.js]]
importScript('User:Jdlrobson/vector-max-width-toggle.js'); // Backlink: [[User:Jdlrobson/vector-max-width-toggle.js]]
importScript('User:Qwerfjkl/scripts/hideUnwantedCategories.js'); // Backlink: [[User:Qwerfjkl/scripts/hideUnwantedCategories.js]]
importScript('User:Enterprisey/diff-permalink-2.js'); // Backlink: [[User:Enterprisey/diff-permalink-2.js]]
importScript('User:Mvolz/displayContributions.js'); // Backlink: [[User:Mvolz/displayContributions.js]]
importScript('User:Suntooooth/flickrsearch.js'); // Backlink: [[User:Suntooooth/flickrsearch.js]]
importScript('User:SD0001/W-Ping.js'); // Backlink: [[User:SD0001/W-Ping.js]]
importScript('User:Chlod/Scripts/Deputy.js'); // Backlink: [[User:Chlod/Scripts/Deputy.js]]
importScript('User:Awesome_Aasim/savedraft.js'); // Backlink: [[User:Awesome_Aasim/savedraft.js]]
importScript('User:Sohom_Datta/fastreview.js'); // Backlink: [[User:Sohom_Datta/fastreview.js]]
importScript('User:Aaron_Liu/MoveTop.js'); // Backlink: [[User:Aaron_Liu/MoveTop.js]]
importScript('User:JAAqqO/EnhancedSearchPage.js'); // Backlink: [[User:JAAqqO/EnhancedSearchPage.js]]
importScript('User:Guarapiranga/search-shortcuts.js'); // Backlink: [[User:Guarapiranga/search-shortcuts.js]]
importScript('User:Writ Keeper/Scripts/commonHistory.js'); // Backlink: [[User:Writ Keeper/Scripts/commonHistory.js]]
importScript('User:Ingenuity/preview.js'); // Backlink: [[User:Ingenuity/preview.js]]
importScript('User:Eejit43/scripts/ajax-undo.js'); // Backlink: [[User:Eejit43/scripts/ajax-undo.js]]
importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript('User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js'); // Backlink: [[User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js]]
importScript('User:Eejit43/scripts/afcrc-helper.js'); // Backlink: [[User:Eejit43/scripts/afcrc-helper.js]]
mw.loader.load('https://en.wikipedia.org/wiki/User:Mdaniels5757/markAdmins.js?action=raw&ctype=text/javascript');
window.markAdminCfg = {
groups: {
'abusefilter': { enabled: true },
'abusefilter-helper': { enabled: true },
'accountcreator': { enabled: true },
'autoreviewer': { enabled: true },
'extendedmover': { enabled: true },
'filemover': { enabled: true },
'massmessage-sender': { enabled: true },
'templateeditor': { enabled: true },
'vrt-permissions': { enabled: true },
'patroller': { enabled: true },
'reviewer': { enabled: true },
'rollbacker': { enabled: true },
}
};
importScript('User:SuperHamster/CiteUnseen.js'); // Backlink: [[User:SuperHamster/CiteUnseen.js]]
importScript('User:Novem Linguae/Scripts/CiteHighlighter.js'); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
importScript('User:Frietjes/findargdups.js'); // Backlink: [[User:Frietjes/findargdups.js]]
importScript('User:BilledMammal/MovePlus.js'); // Backlink: [[User:BilledMammal/MovePlus.js]]
importScript('User:Ohconfucius/dashes.js'); // Backlink: [[User:Ohconfucius/dashes.js]]
importScript('User:ZKang123/TitleCaseConverter.js'); // Backlink: [[User:ZKang123/TitleCaseConverter.js]]
$.getScript(
'//meta.wikimedia.org/w/index.php?title=User:EpochFail/ArticleQuality-system.js&action=raw&ctype=text/javascript',
function(){
articleQuality = new ArticleQuality({
ores_host: "https://ores.wikimedia.org",
weights: {
Stub: 1,
Start: 2,
C: 3,
B: 4,
GA: 5,
FA: 6
},
names: {
Stub: "{{class|Stub|image=yes}}",
Start: "{{class|Start|image=yes}}",
C: "{{class|C|image=yes}}",
B: "{{class|B|image=yes}}",
GA: "{{class|GA|image=yes}}",
FA: "{{class|FA|image=yes}}"
},
assessment_system: "ORES predicted quality",
dbname: "enwiki"
});
// if(mw.config.get('wgAction') === "history" && (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 2 || mw.config.get('wgNamespaceNumber') === 100)){
// articleQuality.getAndRenderHistoryScores();
// }
if(mw.config.get('wgAction') === "view" && (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 2 || mw.config.get('wgNamespaceNumber') === 100)){
articleQuality.getAndRenderScoreHeader();
}
articleQuality.addScoresToArticleLinks();
}
);
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3AEpochFail%2FArticleQuality.css&action=raw&ctype=text/javascript');
importScript('User:BrandonXLF/CitationStyleMarker.js'); // Backlink: [[User:BrandonXLF/CitationStyleMarker.js]]
importScript('User:Andrybak/Archiver.js'); // Backlink: [[User:Andrybak/Archiver.js]]
importScript('User:Novem_Linguae/Scripts/SpeciesHelper.js'); // Backlink: [[User:Novem_Linguae/Scripts/SpeciesHelper.js]]
importScript('User:PleaseStand/segregate-refs.js'); // Backlink: [[User:PleaseStand/segregate-refs.js]]
importScript('User:Writ Keeper/Scripts/peerReviewCloser.js'); // Backlink: [[User:Writ Keeper/Scripts/peerReviewCloser.js]]
importScript('User:Ohconfucius/script/formatgeneral.js'); // Backlink: [[User:Ohconfucius/script/formatgeneral.js]]
importScript('User:Andrybak/Scripts/Not_around.js'); // Backlink: [[User:Andrybak/Scripts/Not_around.js]]
importScript('User:JPxG/Difformatter.js'); // Backlink: [[User:JPxG/Difformatter.js]]
importScript('User:Novem Linguae/Scripts/UserRightsDiff.js'); // Backlink: [[User:Novem Linguae/Scripts/UserRightsDiff.js]]
importScript('User:Novem Linguae/Scripts/MarkFreeUseRationale.js'); // Backlink: [[User:Novem Linguae/Scripts/MarkFreeUseRationale.js]]
importScript('User:SD0001/GAR-helper.js'); // Backlink: [[User:SD0001/GAR-helper.js]]
importScript('User:Novem_Linguae/Scripts/anrfc-lister.js'); // Backlink: [[User:Novem_Linguae/Scripts/anrfc-lister.js]]
importScript('User:Argenti Aertheri/RefConsolidate start.js'); // Backlink: [[User:Argenti Aertheri/RefConsolidate start.js]]
importScript('User:Sohom Datta/fastreview.js'); // Backlink: [[User:Sohom Datta/fastreview.js]]
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.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]]
importScript('User:Theleekycauldron/orestalk.js'); // Backlink: [[User:Theleekycauldron/orestalk.js]]
importScript('User:BrandonXLF/ShowUserGender.js'); // Backlink: [[User:BrandonXLF/ShowUserGender.js]]
importScript('User:Novem_Linguae/Scripts/VisualEditorEverywhere.js'); // Backlink: [[User:Novem_Linguae/Scripts/VisualEditorEverywhere.js]]
importScript('User:Ingenuity/MergeDuplicateRefs.js'); // Backlink: [[User:Ingenuity/MergeDuplicateRefs.js]]