Jump to content

User:Closed Limelike Curves/vector-2022.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.
if(!/\bnocache=\b/.test(location.href)){let e=mw.config.values,t="text/javascript",o="text/css",n=(n,r,i)=>(n=n.replace(/special:mypage/i,"User:"+e.wgUserName),$.get("https://"+r+"/w/api.php?titles="+n+"&origin=*&format=json&formatversion=2&uselang=content&maxage=86400&smaxage=86400&action=query&prop=revisions|info&rvprop=content&rvlimit=1&inprop=protection").then((e=>{let a=e.query.pages[0];if(!a.missing){if(2!==a.ns&&8!==a.ns&&!a.protection.find((e=>"edit"===e.type&&"sysop"===e.level)))return $.Deferred().reject('Refused to load "'+n+'"@'+r+": unprotected page");let e=a.revisions[0].content;if(i&&i!==t||"javascript"!==a.contentmodel){if(i!==o||"css"!==a.contentmodel)return $.Deferred().reject('Refused to load "'+n+'"@'+r+": content type mismatch");mw.loader.addStyleTag(e)}else{let t=document.createElement("script");t.innerHTML=e,document.head.appendChild(t)}}}))),r=e.wgServerName,i=e=>{let t=/^(?:(?:https:)?\/\/(.*))?\/w\/index.php/.exec(e),o=/\btitle=([^=?&]*)/.exec(e);return t&&o&&/\baction=raw\b/.test(e)&&/\bctype=/.test(e)?[o[1],t[1]||r]:null};window.importScript=e=>{n(encodeURIComponent(e),r,t)},window.importStyleSheet=e=>{n(encodeURIComponent(e),r,o)};let a=mw.loader.load;mw.loader.load=function(e,t){let o=i(e);o?n(o[0],o[1],t):a.apply(mw.loader,[...arguments])};let l=mw.loader.getScript;mw.loader.getScript=function(e){let o=i(e);return o?n(o[0],o[1],t):l.apply(mw.loader,[...arguments])}}

//JWB
mw.loader.load('/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); // Backlink: [[User:Joeytje50/JWB.js/load.js]]
//GAN
importScript('User:Novem Linguae/Scripts/GANReviewTool.js'); // Backlink: [[User:Novem Linguae/Scripts/GANReviewTool.js]]

// Cropping
importScript('User:BrandonXLF/CSSImageCrop.js'); // Backlink: [[User:BrandonXLF/CSSImageCrop.js]]

// References / citations
importScript('User:Kaniivel/RefConsolidate_start.js'); // Backlink: [[User:Kaniivel/RefConsolidate_start.js]]
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.js]]
importScript('User:Diegodlh/Web2Cit/script.js'); // Backlink: [[User:Diegodlh/Web2Cit/script.js]]
importScript('User:TheJJJunk/ARA.js'); // Backlink: [[User:TheJJJunk/ARA.js]]
importScript('User:Uglemat/RefMan.js'); // Backlink: [[User:Uglemat/RefMan.js]]
importScript('User:Guywan/Scripts/RefCruncher.js'); // Backlink: [[User:Guywan/Scripts/RefCruncher.js]]
importScript('User:Ingenuity/ReferenceEditor.js'); // Backlink: [[User:Ingenuity/ReferenceEditor.js]]

// Info and popups
importScript('User:EpochFail/ArticleQuality.js'); // Backlink: [[User:EpochFail/ArticleQuality.js]]
importScript('User:Nardog/VitalTopicon.js'); // Backlink: [[User:Nardog/VitalTopicon.js]]
importScript('User:Phlsph7/Readability.js'); // Backlink: [[User:Phlsph7/Readability.js]]
importScript('User:Bugghost/Scripts/UserRoleIndicator.js'); // Backlink: [[User:Bugghost/Scripts/UserRoleIndicator.js]]
importScript('User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js'); // Backlink: [[User:Novem Linguae/Scripts/UserTalkErasedSectionsDetector.js]]


// Source editor
importScript('User:BrandonXLF/QuickEdit.js'); // Backlink: [[User:BrandonXLF/QuickEdit.js]]
importScript('User:MarkS/extraeditbuttons.js'); // Backlink: [[User:MarkS/extraeditbuttons.js]]
importScript('User:Nardog/DiffUndo.js'); // Backlink: [[User:Nardog/DiffUndo.js]]
importScript('User:Nardog/CodeEditorAssist.js'); // Backlink: [[User:Nardog/CodeEditorAssist.js]]
importScript('m:User:NguoiDungKhongDinhDanh/AceForLuaDebugConsole.js'); // Backlink: [[m:User:NguoiDungKhongDinhDanh/AceForLuaDebugConsole.js]]


// Visual editor


// Contribs
importScript('User:JPxG/current-switcher.js'); // Backlink: [[User:JPxG/current-switcher.js]]


// Copying
// importScript('User:BrandonXLF/AddCopied.js'); // Backlink: [[User:BrandonXLF/AddCopied.js]]
// importScript('User:Novem Linguae/Scripts/CWWEditSummary.js'); // Backlink: [[User:Novem Linguae/Scripts/CWWEditSummary.js]] // Attribution for copying from other parts of wiki


// Edit summaries
//importScript('User:Nardog/AutoSectionLink.js'); // Backlink: [[User:Nardog/AutoSectionLink.js]]


// Diffs
// importScript('m:User:Ponor/inline-diff-inline-patrol.js'); // Backlink: [[m:User:Ponor/inline-diff-inline-patrol.js]]
importScript('User:BrandonXLF/CompareRevisions.js'); // Backlink: [[User:BrandonXLF/CompareRevisions.js]]
importScript('User:Enterprisey/fancy-diffs.js'); // Backlink: [[User:Enterprisey/fancy-diffs.js]]
importScript('User:BrandonXLF/MoreDiffInfo.js'); // Backlink: [[User:BrandonXLF/MoreDiffInfo.js]]
importScript('User:Anomie/diffcur.js'); // Backlink: [[User:Anomie/diffcur.js]]
importScript('User:Þjarkur/CleanDiffURLs.js'); // Backlink: [[User:Þjarkur/CleanDiffURLs.js]]
//importScript('User:Rublov/diff-link.js'); // Backlink: User:Rublov/diff-link.js


// Moves
importScript('User:BrandonXLF/SubpageMover.js'); // Backlink: [[User:BrandonXLF/SubpageMover.js]]
importScript('User:BilledMammal/MovePlus.js'); // Backlink: [[User:BilledMammal/MovePlus.js]]


// Redirects
importScript('User:Awesome Aasim/redirectcreator.js'); // Backlink: [[User:Awesome Aasim/redirectcreator.js]]
importScript('User:BrandonXLF/RedirectNotification.js'); // Backlink: [[User:BrandonXLF/RedirectNotification.js]]
importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
importScript('User:Enterprisey/section-redir-note.js'); // Backlink: [[User:Enterprisey/section-redir-note.js]]


// Discussions
importScript('User:DaxServer/DiscussionCloser.js'); // Backlink: [[User:DaxServer/DiscussionCloser.js]]
importScript('User:Chlod/Scripts/FoldArchives.js'); // Backlink: [[User:Chlod/Scripts/FoldArchives.js]]
importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
importScript('User:Anne drew/SetupAutoArchive.js'); // Backlink: [[User:Anne drew/SetupAutoArchive.js]]
importScript('User:Andrybak/Scripts/Unsigned_helper.js'); // Backlink: [[User:Andrybak/Scripts/Unsigned_helper.js]]
importScript('User:Andrybak/Scripts/Unsigned generator.js'); // Backlink: [[User:Andrybak/Scripts/Unsigned generator.js]]


// History
//importScript('User:Awesome_Aasim/infiniscroll.js'); // Backlink: [[User:Awesome_Aasim/infiniscroll.js]]
importScript('User:Andrybak/Scripts/user-tabs-on-contribs.js'); // Backlink: [[User:Andrybak/Scripts/user-tabs-on-contribs.js]]


// Votes
importScript('User:Awesome_Aasim/xfdvote.js'); // Backlink: [[User:Awesome_Aasim/xfdvote.js]]
importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: [[User:Novem Linguae/Scripts/VoteCounter.js]]


// Menus and buttons
//importScript('User:Novem Linguae/Scripts/Links.js'); // Backlink: [[User:Novem Linguae/Scripts/Links.js]]
//importScript('User:PAC2/justaclickaway.js'); // Backlink: [[User:PAC2/justaclickaway.js]]
// importScript('User:Bob/externals.css'); // Backlink: [[User:Bob/externals.css]]
importScript('User:DannyS712/TagsManager.js'); // Backlink: [[User:DannyS712/TagsManager.js]]


// Watchlist and recent changes
// importScript('User:UncleDouggie/smart watchlist.js'); // Backlink: [[User:UncleDouggie/smart watchlist.js]]
// importScript('User:Ahecht/Scripts/watchlistcleaner.js'); // Backlink: [[User:Ahecht/Scripts/watchlistcleaner.js]]
importScript('User:Enterprisey/rc-thanks.js'); // Backlink: [[User:Enterprisey/rc-thanks.js]]



// Misc
importScript('User:Taavi/Aligner.js'); // Backlink: [[User:Taavi/Aligner.js]]
importScript('User:Kephir/gadgets/table-editor.js'); // Backlink: [[User:Kephir/gadgets/table-editor.js]]
importScript('User:Guarapiranga/accessKeysCheatSheet.js'); // Backlink: [[User:Guarapiranga/accessKeysCheatSheet.js]]
importScript('User:NguoiDungKhongDinhDanh/FormattedEditRequest.js'); // Backlink: [[User:NguoiDungKhongDinhDanh/FormattedEditRequest.js]]


// Edit reiews
importScript('User:Jackmcbarn/editProtectedHelper.js'); // Backlink: [[User:Jackmcbarn/editProtectedHelper.js]]
importScript('User:DannyS712/Pending changes.js'); // Backlink: [[User:DannyS712/Pending changes.js]]
importScript('User:AndyZ/peerreviewer.js'); // Backlink: [[User:AndyZ/peerreviewer.js]]


// New
//importScript('User:Mesidast/Tidy citations.js'); // Backlink: [[User:Mesidast/Tidy citations.js]]
//importScript('User:ערן/mathjaxdialog.js'); // Backlink: [[User:ערן/mathjaxdialog.js]]
importScript('User:Q28/Edit Keeper.js'); // Backlink: [[User:Q28/Edit Keeper.js]]

importScript('User:Gary/nominations viewer.js'); // Backlink: [[User:Gary/nominations viewer.js]]
//importScript('User:Equazcion/ToggleEditNotices.js'); // Backlink: [[User:Equazcion/ToggleEditNotices.js]]
importScript('User:קיפודנחש/searchPersistence.js'); // Backlink: [[User:קיפודנחש/searchPersistence.js]]