Jump to content

User:Macaw*/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.
// Enable caching for resource loads, see [[User:SD0001/Making_user_scripts_load_faster]], @revision 8
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])}}


importScript('User:Guarapiranga/accessKeysCheatSheet.js'); // Backlink: [[User:Guarapiranga/accessKeysCheatSheet.js]]
importScript('User:Aveaoz/AutoMobileRedirect.js'); // Backlink: [[User:Aveaoz/AutoMobileRedirect.js]]
importScript('User:Evad37/livenotifications.js'); // Backlink: [[User:Evad37/livenotifications.js]]
importScript('User:Writ Keeper/Scripts/unmobilePlus.js'); // Backlink: [[User:Writ Keeper/Scripts/unmobilePlus.js]]
importScript('User:Enterprisey/up-one-lvl-kbd.js'); // Backlink: [[User:Enterprisey/up-one-lvl-kbd.js]]
importScript('User:BrandonXLF/UpdateNotifications.js'); // Backlink: [[User:BrandonXLF/UpdateNotifications.js]]
importScript('User:Caburum/UTCclock.js'); // Backlink: [[User:Caburum/UTCclock.js]]
importScript('User:Nardog/CopyCodeBlock.js'); // Backlink: [[User:Nardog/CopyCodeBlock.js]]
importScript('User:Bawolff/wiktLookup.js'); // Backlink: [[User:Bawolff/wiktLookup.js]]
importScript('User:Rezonansowy/SimpleLightbox.js'); // Backlink: [[User:Rezonansowy/SimpleLightbox.js]]
importScript('User:Bob/externals.css'); // Backlink: [[User:Bob/externals.css]]
importScript('User:Ingenuity/preview.js'); // Backlink: [[User:Ingenuity/preview.js]]
importScript('User:Polygnotus/DuplicateReferences.js'); // Backlink: [[User:Polygnotus/DuplicateReferences.js]]
importScript('User:Polygnotus/Scripts/WikiTextExpander.js'); // Backlink: [[User:Polygnotus/Scripts/WikiTextExpander.js]]
importScript('User:Polygnotus/Scripts/SectionLinks.js'); // Backlink: [[User:Polygnotus/Scripts/SectionLinks.js]]
importScript('User:Polygnotus/Scripts/DiscussionToolsDrafts.js'); // Backlink: [[User:Polygnotus/Scripts/DiscussionToolsDrafts.js]]
importScript('User:Headbomb/unreliable.js'); // Backlink: [[User:Headbomb/unreliable.js]]
importScript('User:CanonNi/Scripts/VoteVisualizer.js'); // Backlink: [[User:CanonNi/Scripts/VoteVisualizer.js]]
importScript('User:The Transhumanist/WatchlistSorter.js'); // Backlink: [[User:The Transhumanist/WatchlistSorter.js]]
importScript('User:Awesome Aasim/rcnotify.js'); // Backlink: [[User:Awesome Aasim/rcnotify.js]]
importScript('User:DreamRimmer/DeletedMetaData.js'); // Backlink: [[User:DreamRimmer/DeletedMetaData.js]]
importScript('User:Opencooper/lastEdit.js'); // Backlink: [[User:Opencooper/lastEdit.js]]
importScript('User:The Transhumanist/SearchSuite.js'); // Backlink: [[User:The Transhumanist/SearchSuite.js]]
importScript('User:Caorongjin/wordcount.js'); // Backlink: [[User:Caorongjin/wordcount.js]]
importScript('User:Ahecht/Scripts/TemplateSearch.js'); // Backlink: [[User:Ahecht/Scripts/TemplateSearch.js]]
importScript('User:Mr. Stradivarius/gadgets/DiffOnly.js'); // Backlink: [[User:Mr. Stradivarius/gadgets/DiffOnly.js]]
importScript('User:Nardog/SmartDiff.js'); // Backlink: [[User:Nardog/SmartDiff.js]]
importScript('User:Andrybak/Scripts/Contribs ranger.js'); // Backlink: [[User:Andrybak/Scripts/Contribs ranger.js]]
importScript('User:Theopolisme/Scripts/ajaxWatchlist.js'); // Backlink: [[User:Theopolisme/Scripts/ajaxWatchlist.js]]
importScript('User:Kangaroopower/AjaxRC.js'); // Backlink: [[User:Kangaroopower/AjaxRC.js]]
importScript('User:GeneralNotability/ip-ext-info.js'); // Backlink: [[User:GeneralNotability/ip-ext-info.js]]
importScript('User:Sportzpikachu/bookmarks.js'); // Backlink: [[User:Sportzpikachu/bookmarks.js]]
importScript('m:MediaWiki:MoreMenu.import.js'); // Backlink: [[m:MediaWiki:MoreMenu.import.js]]
importScript('User:Nardog/InsertAnyChar.js'); // Backlink: [[User:Nardog/InsertAnyChar.js]]
importScript('m:User:Dragoniez/PrivateSandbox.js'); // Backlink: [[m:User:Dragoniez/PrivateSandbox.js]]
importScript('User:Kaniivel/RefConsolidate start.js'); // Backlink: [[User:Kaniivel/RefConsolidate start.js]]
importScript('User:Macaw*/noRefListAlert.js'); // Backlink: [[User:Macaw*/noRefListAlert.js]]
importScript('User:Jeeputer/specialRandomPage.js'); // Backlink: [[User:Jeeputer/specialRandomPage.js]]
importScript('User:קיפודנחש/watchlistScout.js'); // Backlink: [[User:קיפודנחש/watchlistScout.js]]
importScript('User:FlightTime/OneClickArchiver.js'); // Backlink: [[User:FlightTime/OneClickArchiver.js]]
importScript('User:PiRSquared17/rcexpander.js'); // Backlink: [[User:PiRSquared17/rcexpander.js]]
importScript('User:PerfektesChaos/js/listPageOptions/r.js'); // Backlink: [[User:PerfektesChaos/js/listPageOptions/r.js]]
importScript('User:Nardog/RCMuter.js'); // Backlink: [[User:Nardog/RCMuter.js]]
importScript('User:js/6tabs-vector.js'); // Backlink: [[User:js/6tabs-vector.js]]
importScript('User:Closed Limelike Curves/ColorfulButtons.css'); // Backlink: [[User:Closed Limelike Curves/ColorfulButtons.css]]
importScript('User:Guywan/Scripts/ConfirmLogout.js'); // Backlink: [[User:Guywan/Scripts/ConfirmLogout.js]]
importScript('User:Enterprisey/superjump.js'); // Backlink: [[User:Enterprisey/superjump.js]]
importScript('User:BrandonXLF/TodoList.js'); // Backlink: [[User:BrandonXLF/TodoList.js]]
importScript('User:Mxn/CommentsInLocalTime.js'); // Backlink: [[User:Mxn/CommentsInLocalTime.js]]
importScript('wikt:MediaWiki:Gadget-CodeLinks.js'); // Backlink: [[wikt:MediaWiki:Gadget-CodeLinks.js]]
importScript('User:PerfektesChaos/js/lintHint/r.js'); // Backlink: [[User:PerfektesChaos/js/lintHint/r.js]]
importScript('User:Cyberdog958/Scripts/Superlinks.js'); // Backlink: [[User:Cyberdog958/Scripts/Superlinks.js]]
importScript('User:BrandonXLF/CompareRevisions.js'); // Backlink: [[User:BrandonXLF/CompareRevisions.js]]
importScript('User:NguoiDungKhongDinhDanh/AjaxLoader.js'); // Backlink: [[User:NguoiDungKhongDinhDanh/AjaxLoader.js]]
importScript('User:Galobtter/scripts/adminhighlighter.js'); // Backlink: [[User:Galobtter/scripts/adminhighlighter.js]]

importScript('User:RedWarn/.js'); // Backlink: [[User:RedWarn/.js]]