Jump to content

User:Mr.Z-man/refToolbar.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Kaldari (talk | contribs) at 17:58, 17 February 2011 (updating to match gadget definition). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
var refToolbarInstalled = true;
if (wgServer == "https://secure.wikimedia.org") {
  importScriptURI("https://secure.wikimedia.org/wikipedia/en/w/index.php?title=User:Mr.Z-man/refToolbar_2.0/base.js&action=raw&ctype=text/javascript");
} else {
  importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Mr.Z-man/refToolbar_2.0/base.js&action=raw&ctype=text/javascript');
}
if( typeof $j.wikiEditor != 'undefined' && (wgAction == 'edit' || wgAction == 'submit') ) {
// if( wgWikiEditorPreferences.toolbar.enable && wgWikiEditorPreferences.toolbar.dialogs /*&& navigator.userAgent.indexOf('MSIE') == -1*/ ) {
  importScript('User:Mr.Z-man/refToolbar 2.0.js');
// } else if( wgWikiEditorPreferences.toolbar.enable ) {
//  importScript('User:Mr.Z-man/refToolbarIE.js');
// }
} else if (wgAction == 'edit' || wgAction == 'submit') {
  importScript('User:Apoc2400/refToolbarPlus.js');
}