Jump to content

User:Djiboun/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
//window.GlobalWatchlistConfig = { "anonFilter": 0, "botFilter": 0, "confirmAllSites": true, "fastMode": true, "groupPage": true, "minorFilter": 2, "showEdits": true, "showLogEntries": true, "showNewPages": true, "sites": [  "fr.wiktionary",  "fr.wikibooks",  "fr.wikivoyage",  "en.wikipedia",  "commons.wikimedia",  "meta.wikimedia",  "www.wikidata" ] };
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:DannyS712/Global watchlist.js&action=raw&ctype=text/javascript');

wfLoadExtension( 'GlobalWatchlist' );

// Promoted to gadget, Dec 2021

mw.loader.using(['mediawiki.util', 'mediawiki.api']).then(function() {
	if (!mw.user.options.get('gadget-dark-mode-toggle')) {
		new mw.Api().saveOption('gadget-dark-mode-toggle', '1');
	}
});