User:CrafterNova/common.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 20:
importScript('User:EnterpriseyBot/delsort.js'); // Backlink: [[User:EnterpriseyBot/delsort.js]]
importScript('User:Enterprisey/delsort.js'); // Backlink: [[User:Enterprisey/delsort.js]]
importScript('User:Evad37/XFDcloser/v3.js'); // Backlink: [[User:Evad37/XFDcloser/v3.js]]
importScript('User:GeneralNotability/spihelper.js'); // Backlink: [[User:GeneralNotability/spihelper.js]]
importScript('User:Kephir/gadgets/rater.js'); // Backlink: [[User:Kephir/gadgets/rater.js]]
Line 59 ⟶ 58:
importScript('User:Anomie/pagestats.js'); // Backlink: [[User:Anomie/pagestats.js]]
importScript('User:Anomie/diffcur.js'); // Backlink: [[User:Anomie/diffcur.js]]
importScript('User:Anomie/hidespoilers.js'); // Backlink: [[User:Anomie/hidespoilers.js]]
importScript('User:Enterprisey/StatusChanger.js'); // Backlink: [[User:Enterprisey/StatusChanger.js]]
importScript('User:Awesome Aasim/noeditredlinks.js'); // Backlink: [[User:Awesome Aasim/noeditredlinks.js]]
//importScript('User:AnomieVolker E. (WMF)/hidespoilersdark-mode.js'); // Backlink: [[User:AnomieVolker E. (WMF)/hidespoilersdark-mode.js]]
window.wpDarkModeAutoToggle = true;
importScript('User:Volker E. (WMF)/dark-mode.js'); // Backlink: [[User:Volker E. (WMF)/dark-mode.js]]
// Load dependencies (remove when loading through ResourceLoader).
mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Volker_E._(WMF)/dark-mode.js&action=raw&ctype=text/javascript', 'text/css' );
// User has dark color scheme preference set in operating system.
if ( window.matchMedia( '( prefers-color-scheme: dark )' ).matches || mw.storage.get( 'client-dark-mode-toggle' ) === '1' ) {
document.documentElement.className = 'client-dark-mode';
}
 
$( function () {
// Fix logos.
$( '#p-logo' ).clone().addClass( 'mw-no-invert' ).insertAfter( '#p-logo' );
mw.util.addPortletLink( 'p-personal', '#', 'Dark mode', 'pt-darkmode', '', 'np', '#pt-watchlist' );
 
$( '#pt-darkmode' ).on( 'click', function( e ) {
var $html = $( 'html' );
e.preventDefault();
$html.toggleClass( 'client-dark-mode' );
mw.storage.set(
'client-dark-mode-toggle',
String( Number( $html.hasClass( 'client-dark-mode' ) ) )
);
} );
} );
 
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AUziel302%2Ftypo.js&action=raw&ctype=text/javascript');
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User%3AZhaofeng_Li%2FReflinks.js&action=raw&ctype=text/javascript');
//mw.loader.load('//meta.wikimedia.org/wiki/User:CrafterNova/global.js&action=raw&ctype=text/javascript');
 
importScript('User:Naypta/ScriptInstaller.js'); // Backlink: [[User:Naypta/ScriptInstaller.js]]
Line 121 ⟶ 94:
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3AFrietjes%2Ffindargdups.js&action=raw&ctype=text/javascript');
importScript('User:BrownHairedGirl/linkrot.js'); // Backlink: [[User:BrownHairedGirl/linkrot.js]]
importScript('User:Joeytje50/JWB.js/worker.js'); // Backlink: [[User:Joeytje50/JWB.js/worker.js]]
importScript('User:Joeytje50/JWB.js/i18n.js'); // Backlink: [[User:Joeytje50/JWB.js/i18n.js]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3APerfektesChaos%2Fjs%2FlintHint%2Fr.js&action=raw&ctype=text/javascript');
importScript('User:Smith609/toolbox.js'); // Backlink: [[User:Smith609/toolbox.js]]
Line 137 ⟶ 108:
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer%3ASchnark%2Fjs%2Fdiff.js%2Fcore.js&action=raw&ctype=text/javascript');
//[[Benutzer:Schnark/js/bandersnatch.js]]
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer%3ASchnark%2Fjs%2Fbandersnatch.js&action=raw&ctype=text/javascript');
//[[User:Joeytje50/JWB.js]]
 
importScript('User:Wugapodes/Capricorn.js'); // Backlink: [[User:Wugapodes/Capricorn.js]]
Line 156 ⟶ 125:
importScript('User:DannyS712/SectionRemover.js'); // Backlink: [[User:DannyS712/SectionRemover.js]]
importScript('User:DannyS712/DiscussionCloser.js'); // Backlink: [[User:DannyS712/DiscussionCloser.js]]
importScript('User:Evad37MPGuy2824/XFDcloser/v3MoveToDraft.js'); // Backlink: [[User:Evad37/XFDcloserUser:MPGuy2824/v3MoveToDraft.js]]
importScript('User:Amalthea/culoghelper.js'); // Backlink: [[User:Amalthea/culoghelper.js]]
// Adds a link to the CU log for the date/time that the check was executed
Line 188 ⟶ 158:
importScript('User:Evad37/rater.js'); // Backlink: [[User:Evad37/rater.js]]
importScript('User:GeneralNotability/mark-locked.js'); // Backlink: [[User:GeneralNotability/mark-locked.js]]
importScript('User:Joeytje50/JWB.js/load.js'); // Backlink: [[User:Joeytje50/JWB.js/load.js]]
importScript('User:Awesome Aasim/infiniscroll.js'); // Backlink: [[User:Awesome Aasim/infiniscroll.js]]
importScript('User:Novem Linguae/Scripts/VoteCounter.js'); // Backlink: [[User:Novem Linguae/Scripts/VoteCounter.js]]