Jump to content

User:YeYen KY/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.
/* Add button to toggle "seen" items on watchlist view */
$( function() {
	'use strict';
	$( '#mw-watchlist-options' ).append( '<button type="button" id="watchlist-toggle-seen" title="Toggle seen entries">Toggle Seen</button>' );
	$( '#watchlist-toggle-seen' ).click( function() {
		$( '.mw-changeslist-watchedseen' ).toggle();
	} );
} );

///////////////////////////////////////////
//[[User:BethNaught/exportUserOptions.js]] adds [[Special:ExportUserOptions]]
//mw.loader.load("/w/index.php?title=User:BethNaught/exportUserOptions.js&action=raw&ctype=text/javascript");
//importScript('User:BethNaught/exportUserOptions.js');
///////////////////////////////////////////

//TEST
//mw.notify('The script you are importing, User:FR30799386/copyvio-check.js, has been deprecated. A forked replacement is available at https://w.wiki/4vAP')