MediaWiki:Gadget-popups.js: difference between revisions

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Content deleted Content added
Bequw (talk | contribs)
mNo edit summary
if this script is being loaded from an HTTPS page, then it should load the associated WP script & stylesheet over HTTPS as well
Line 8: Line 8:
// This script changes timestamps such as those in comments to be relative to the local time.
// This script changes timestamps such as those in comments to be relative to the local time.


//importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');
//importScriptURI('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');


//can I just use the wikibits importStylesheetURI()?
//can I just use the wikibits importStylesheetURI()?
Line 15: Line 15:
}
}


popups_importStylesheetURI('http://en.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=User:Lupin/navpopdev.css');
popups_importStylesheetURI('//en.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=User:Lupin/navpopdev.css');
importScriptURI('http://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');
importScriptURI('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');


importScript('User:Connel MacKenzie/mess-with-popups.js');
importScript('User:Connel MacKenzie/mess-with-popups.js');

Revision as of 04:07, 17 August 2013

//  _________________________________________________________________________________________
// |                                                                                         |
// |                    === WARNING: GLOBAL GADGET FILE ===                                  |
// |                  Changes to this page affect many users.                                |
// | Please discuss changes on the [[Wiktionary:Grease Pit]] before editing.                 |
// |_________________________________________________________________________________________|
//
// This script changes timestamps such as those in comments to be relative to the local time.

//importScriptURI('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');

//can I just use the wikibits importStylesheetURI()?
function popups_importStylesheetURI(url) {
	return document.createStyleSheet ? document.createStyleSheet(url) : appendCSS('@import "' + url + '";');
}

popups_importStylesheetURI('//en.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=User:Lupin/navpopdev.css');
importScriptURI('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript');

importScript('User:Connel MacKenzie/mess-with-popups.js');