Jump to content

User:Awesome Aasim/SRGL.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.
$('<div class="mw-dismissable-notice" id="srgl-notice"><div class="mw-dismissable-notice-body"><div class="mw-dismissable-notice-close" style="visibility: visible;float: right;align:center;y-align:center;">[<a tabindex="0" role="button">dismiss</a>]</div><div id="localNotice" lang="en" dir="ltr"><p>To use the SRGL script, you must add the following line of code to your <a href="//meta.wikimedia.org/wiki/Special:MyPage/global.js">global.js</a> file:  <code>mw.loader.load("https://meta.wikimedia.org/wiki/User:Awesome Aasim/SRGL.js?action=raw&ctype=text/javascript");</code>.  After you have done that, remove <code>importScript("User:Awesome Aasim/SRGL.js")</code> from your <a href="/wiki/Special:MyPage/common.js">common.js</a> or <a href="/wiki/Special:MyPage/skin.js">skin.js</a> file.</p></div></div></div>').appendTo("#siteNotice");
$("#srgl-notice .mw-dismissable-notice-close").click(function() {
	$("#srgl-notice").remove();
});