User:NOBODY/global.js

PurgeButtonText = 'Purge'; importScriptPage('PurgeButton/code.js', 'dev'); // http://dev.wikia.com/wiki/RevealAnonIP window.RevealAnonIP = { permissions : ['user'] }; importScriptPage('RevealAnonIP/code.js', 'dev'); var Speed = 1000; var Start = 0; importScriptPage('BackToTopButton/code.js', 'dev'); // BEGIN BotoneraPopups importScriptURI('http://dev.wikia.com/wiki/BotoneraPopups/Code/en.js?action=raw&ctype=text/javascript&templates=expand'); importStylesheetPage('BotoneraPopups/code.css', 'dev');

// User images notification // http://community.wikia.com/wiki/Thread:476904 if (mediaWiki.config.get("wgAction") === "view" && (!window.localStorage || !window.localStorage.getItem('#NoteNotification'))) { (function ($, mw, window) {		var wgServer = mw.config.get("wgServer"),			wgUserName = mw.config.get("wgUserName");		if (typeof wgUserName !== "string") {			$(createNotification);		} else {			var url = wgServer + "/api.php?action=query&format=json&list=usercontribs&uclimit=100000&ucuser=" + window.encodeURIComponent(wgUserName);

$.get(url, function (data) {				try {					if (data.query.usercontribs.length < 100000) {						$(createNotification);					}				} catch (e) {}			}); }		function createNotification { // HTML for the notification (no wiki markup allowed here, e.g. link here is not HTML) var notificationHTML = ' 1. Achievements 2. NMD 3. Nitrome Story 4. Pest Control 5. TSA2 stats (table and speed) 6. Split spells 7. Jelly Beanstalk 8. Exploration 9. Unused content article 10. Reception section 11. SS IAP 12. Add image to template 13. Documentation for templates 14. SFM programmer left 15. RFD shopkeeper 16. Slider Edit '; // add notication into the page $('#NoteNotification').remove; $('body').append(notificationHTML); // close the notification when clicking the x			$('#NoteNotification .close-notification').click(function {				$('#NoteNotification').remove;				if (window.localStorage) {					window.localStorage.setItem('#NoteNotification', 'dismissed');				}			}); }	}(jQuery, mediaWiki, window)); }