Jump to content

User:Paper9oll/Elixir.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.
// <nowiki>
(function () {
	if (mw.config.get('wgDBname') === 'enwiki') {
		if (mw.config.get('wgNamespaceNumber') === 0 || mw.config.get('wgNamespaceNumber') === 118) {
			var script = document.createElement('script');
			script.type = 'text/javascript';
			script.async = true;
			var url = '//wiki.riteme.site/w/index.php?title=User:Paper9oll/Elixir-core.js&action=raw&ctype=text/javascript';
			var cacheBuster = 'cache=' + Date.now();
			url += (url.indexOf('?') === -1 ? '?' : '&') + cacheBuster;
			script.src = url;
			document.head.appendChild(script);
		}
	}
})();
// </nowiki>