User:JJPMaster/redwarn-blacklist.js

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

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

  • Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
  • Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
  • Opera, Konqueror and Safari users can just click the Reload button.
  • Chrome: press Ctrl+F5 or Shift+F5
$.getJSON('https://en.uncyclopedia.co/w/index.php?title=Uncyclopedia:RedWarn/Blacklist/List/sandbox&action=raw&ctype=text/json', function( data ) {
	if(data.user.includes(mw.config.get('wgUserName'))) {
		mw.notify('RedWarn error: You have been blacklisted from using RedWarn. See the blacklist (Uncyclopedia:RedWarn/Blacklist/List) for information.');
		throw new Error('You are blacklisted from using RedWarn.')
		api = new mw.Api();

api.postWithToken( 'csrf', params ).done( function ( data ) {
	console.log( data );
} );
}
});