Content deleted Content added
Installing User:Nardog/DiffUndo.js (script-installer) |
|||
(46 intermediate revisions by the same user not shown) | |||
Line 1:
// Enable caching for resource loads, see [[User:SD0001/Making_user_scripts_load_faster]], @revision 7
if(!/\bnocache=\b/.test(___location.href)){let e=mw.config.values,t="text/javascript",r="text/css",n=(n,o,i)=>(n=n.replace(/special:mypage/i,"User:"+e.wgUserName),$.get("https://"+o+"/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+'"@'+o+": unprotected page");let l=a.revisions[0].content;if(i&&i!==t||"javascript"!==a.contentmodel){if(i!==r||"css"!==a.contentmodel)return $.Deferred().reject('Refused to load "'+n+'"@'+o+": content type mismatch");mw.loader.addStyleTag(l)}else document.head.appendChild(document.createElement("script")).innerHTML=l}})),o=e.wgServerName,i=e=>{let t=/^(?:(?:https:)?\/\/(.*))?\/w\/index.php/.exec(e),r=/\btitle=([^=?&]*)/.exec(e);return t&&r&&/\baction=raw\b/.test(e)&&/\bctype=/.test(e)?[r[1],t[1]||o]:null};window.importScript=e=>{n(encodeURIComponent(e),o,t)},window.importStyleSheet=e=>{n(encodeURIComponent(e),o,r)};let a=mw.loader.load;mw.loader.load=function(e,t){let r=i(e);r?n(r[0],r[1],t):a.apply(mw.loader,[...arguments])};let l=mw.loader.getScript;mw.loader.getScript=function(e){let r=i(e);return r?n(r[0],r[1],t):l.apply(mw.loader,[...arguments])}}
mw.loader.load( '/w/index.php?title=User:Enterprisey/short-tab-titles.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/short-tab-titles.js]] // Backlink: [[User:Enterprisey/short-tab-titles.js]]
//SCRIPT MANAGER▼
scriptsToManage = {▼
"Discussion closer" : "//en.wikipedia.org/w/index.php?title=User:DannyS712/DiscussionCloser.js&action=raw&ctype=text/javascript",▼
"List sorter" : "//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ListSorter.js&action=raw&ctype=text/javascript",▼
"Draft sorter" : "//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/draft-sorter.js&action=raw&ctype=text/javascript",▼
"DYK helper" : "//en.wikipedia.org/w/index.php?title=User:SD0001/DYK-helper.js&action=raw&ctype=text/javascript",▼
"
"AfD Voter" : "//en.wikipedia.org/w/index.php?title=User:Awesome_Aasim/xfdvote.js&action=raw&ctype=text/javascript",▼
"
"
};▼
// END SM▼
mw.loader.load("/w/index.php?title=User:10nm/beta.js&action=raw&ctype=text/javascript");▼
mw.loader.load( '/w/index.php?title=User:Amorymeltzer/userinfo.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Amorymeltzer/userinfo.js]] // Backlink: [[User:Amorymeltzer/userinfo.js]]▼
mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/UserHighlighter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/UserHighlighter.js]] // Backlink: [[User:Chlod/Scripts/UserHighlighter.js]]
mw.loader.load( '/w/index.php?title=User:Headbomb/unreliable.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Headbomb/unreliable.js]] // Backlink: [[User:Headbomb/unreliable.js]]▼
mw.loader.load( '/w/index.php?title=User:BrandonXLF/FindSources.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/FindSources.js]] // Backlink: [[User:BrandonXLF/FindSources.js]]▼
mw.loader.load( '/w/index.php?title=User:Pythoncoder/Scripts/voteSymbols.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Pythoncoder/Scripts/voteSymbols.js]] // Backlink: [[User:Pythoncoder/Scripts/voteSymbols.js]]
mw.loader.load( '/w/index.php?title=User:
mw.loader.load( '/w/index.php?title=User:Evad37/rater.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Evad37/rater.js]] // Backlink: [[User:Evad37/rater.js]]
//mw.loader.load( '/w/index.php?title=User:Amorymeltzer/oldafd.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Amorymeltzer/oldafd.js]] // Backlink: [[User:Amorymeltzer/oldafd.js]]
//mw.loader.load( '/w/index.php?title=User:Awesome_Aasim/editrequest.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Awesome Aasim/editrequest.js]] // Backlink: [[User:Awesome Aasim/editrequest.js]]▼
▲mw.loader.load( '/w/index.php?title=User:BrandonXLF/FindSources.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/FindSources.js]] // Backlink: [[User:BrandonXLF/FindSources.js]]
▲mw.loader.load( '/w/index.php?title=User:Headbomb/unreliable.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Headbomb/unreliable.js]] // Backlink: [[User:Headbomb/unreliable.js]]
▲mw.loader.load( '/w/index.php?title=User:Amorymeltzer/userinfo.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Amorymeltzer/userinfo.js]] // Backlink: [[User:Amorymeltzer/userinfo.js]]
//mw.loader.load( '/w/index.php?title=User:DannyS712/DiscussionCloser.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:DannyS712/DiscussionCloser.js]] // Backlink: [[User:DannyS712/DiscussionCloser.js]]
//mw.loader.load( '/w/index.php?title=User:BrandonXLF/ListSorter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/ListSorter.js]] // Backlink: [[User:BrandonXLF/ListSorter.js]]
//mw.loader.load( '/w/index.php?title=User:BrandonXLF/FFUHelper.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/FFUHelper.js]] // Backlink: [[User:BrandonXLF/FFUHelper.js]]
Line 28 ⟶ 41:
mw.loader.load( '/w/index.php?title=User:SD0001/StubSorter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:SD0001/StubSorter.js]] // Backlink: [[User:SD0001/StubSorter.js]]
//mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/FoldArchives.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/FoldArchives.js]] // Backlink: [[User:Chlod/Scripts/FoldArchives.js]]
//mw.loader.load( '/w/index.php?title=User:
mw.loader.load( '/w/index.php?title=User:Enterprisey/rfa-count-toolbar.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Enterprisey/rfa-count-toolbar.js]] // Backlink: [[User:Enterprisey/rfa-count-toolbar.js]]
window.citeHighlighterLighterColors = true;
mw.loader.load( '/w/index.php?title=User:Novem_Linguae/Scripts/CiteHighlighter.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]] // Backlink: [[User:Novem Linguae/Scripts/CiteHighlighter.js]]
▲mw.loader.load( '/w/index.php?title=User:BrandonXLF/NullEdit.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:BrandonXLF/NullEdit.js]] // Backlink: [[User:BrandonXLF/NullEdit.js]]
//mw.loader.load( '/w/index.php?title=User:Terasail/COI_Request_Tool.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Terasail/COI_Request_Tool.js]] // Backlink: [[User:Terasail/COI_Request_Tool.js]]
//mw.loader.load( '//commons.wikimedia.org/w/index.php?title=User:
//importScript('User:TheresNoTime/linkThings.js'); // Backlink: [[User:TheresNoTime/linkThings.js]]▼
▲//SCRIPT MANAGER
▲scriptsToManage = {
▲ "Edit requests" : "//en.wikipedia.org/w/index.php?title=User:Awesome_Aasim/editrequest.js&action=raw&ctype=text/javascript",
▲ "BDCS" : "//en.wikipedia.org/w/index.php?title=User:Berrely/BDCS.js&action=raw&ctype=text/javascript",
▲ "Discussion closer" : "//en.wikipedia.org/w/index.php?title=User:DannyS712/DiscussionCloser.js&action=raw&ctype=text/javascript",
▲ "List sorter" : "//en.wikipedia.org/w/index.php?title=User:BrandonXLF/ListSorter.js&action=raw&ctype=text/javascript",
▲ "Draft sorter" : "//en.wikipedia.org/w/index.php?title=User:Ahecht/Scripts/draft-sorter.js&action=raw&ctype=text/javascript",
▲ "DYK helper" : "//en.wikipedia.org/w/index.php?title=User:SD0001/DYK-helper.js&action=raw&ctype=text/javascript",
▲ "AfD Voter" : "//en.wikipedia.org/w/index.php?title=User:Awesome_Aasim/xfdvote.js&action=raw&ctype=text/javascript",
▲ "AFC/R helper" : "//en.wikipedia.org/w/index.php?title=User:Enterprisey/AFCRHS.js&action=raw&ctype=text/javascript",
▲};
▲// END SM
▲importScript('User:TheresNoTime/linkThings.js'); // Backlink: [[User:TheresNoTime/linkThings.js]]
importScript('User:Novem Linguae/Scripts/DetectSNG.js'); // Backlink: [[User:Novem Linguae/Scripts/DetectSNG.js]]
//importScript('User:Firefly/more-block-info.js'); // Backlink: [[User:Firefly/more-block-info.js]]▼
▲mw.loader.load("/w/index.php?title=User:10nm/beta.js&action=raw&ctype=text/javascript");
▲importScript('User:Firefly/more-block-info.js'); // Backlink: [[User:Firefly/more-block-info.js]]
mw.loader.load( '/w/index.php?title=User:Chlod/Scripts/Deputy.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:Chlod/Scripts/Deputy.js]]
importScript('User:Awesome_Aasim/xfdvote.js'); // Backlink: [[User:Awesome_Aasim/xfdvote.js]]
importScript('User:Taavi/Unslashifier.js'); // Backlink: [[User:Taavi/Unslashifier.js]]
//importScript('User:Nardog/CopyCodeBlock.js'); // Backlink: [[User:Nardog/CopyCodeBlock.js]]
importScript('User:Enterprisey/section-redir-note.js'); // Backlink: [[User:Enterprisey/section-redir-note.js]]
importScript('User:Writ Keeper/Scripts/deletionFinder.js'); // Backlink: [[User:Writ Keeper/Scripts/deletionFinder.js]]
importScript('User:
importScript('User:Mr. Stradivarius/gadgets/Draftify.js'); // Backlink: [[User:Mr. Stradivarius/gadgets/Draftify.js]]
importScript('User:MPGuy2824/MoveToDraft.js'); // Backlink: [[User:MPGuy2824/MoveToDraft.js]]
//importScript('User:Evad37/OneClickArchiver.js'); // Backlink: [[User:Evad37/OneClickArchiver.js]]
▲
importScript('User:Chlod/Scripts/DummyEdit.js'); // Backlink: [[User:Chlod/Scripts/DummyEdit.js]]
importScript('User:Mesidast/Tidy_citations.js'); // Backlink: [[User:Mesidast/Tidy_citations.js]]
importScript('User:Eejit43/scripts/redirect-helper.js'); // Backlink: [[User:Eejit43/scripts/redirect-helper.js]]
importScript('User:Nardog/RefRenamer.js'); // Backlink: [[User:Nardog/RefRenamer.js]]
//importScript('User:Anomie/linkclassifier.js'); // Linkback: [[User:Anomie/linkclassifier.js]]
//importStylesheet('User:Anomie/linkclassifier.css'); // Linkback: [[User:Anomie/linkclassifier.css]]
importScript('User:BrandonXLF/HotDefaultSort.js'); // Backlink: [[User:BrandonXLF/HotDefaultSort.js]]
importScript('User:Ohconfucius/script/EngvarB.js'); // Backlink: [[User:Ohconfucius/script/EngvarB.js]]
importScript('User:Andrybak/Scripts/Unsigned helper.js'); // Backlink: [[User:Andrybak/Scripts/Unsigned helper.js]]
importScript('User:Red-tailed hawk/cv revdel.js'); // Backlink: [[User:Red-tailed hawk/cv revdel.js]]
importScript('User:Trappist the monk/HarvErrors.js'); // Backlink: [[User:Trappist the monk/HarvErrors.js]]
importScript('User:Rublov/anonymize.js'); // Backlink: [[User:Rublov/anonymize.js]]
importScript('User:Elli/OneClickArchiver.js'); // Backlink: [[User:Elli/OneClickArchiver.js]]
importScript('m:User:Jack who built the house/editHere.js'); // Backlink: [[m:User:Jack who built the house/editHere.js]]
importScript('User:GeneralNotability/spihelper.js'); // Backlink: [[User:GeneralNotability/spihelper.js]]
importScript('User:Nardog/DiffUndo.js'); // Backlink: [[User:Nardog/DiffUndo.js]]
|