MediaWiki:Gadget-popups.js: difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
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(' |
//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(' |
popups_importStylesheetURI('//en.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=User:Lupin/navpopdev.css'); |
||
importScriptURI(' |
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');