User:Hydriz/refToolbar.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
if( typeof wgWikiEditorPreferences != 'undefined' && wgWikiEditorPreferences.toolbar ) {
if (wgServer == "https://secure.wikimedia.org") {
mw.loader.load("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 {
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Mr.Z-man/refToolbar_2.0/base.js&action=raw&ctype=text/javascript');
}
if( wgWikiEditorPreferences.toolbar.enable && wgWikiEditorPreferences.toolbar.dialogs /*&& navigator.userAgent.indexOf('MSIE') == -1*/ ) {
importScript('User:Hydriz/refToolbar 2.0.js');
} else if( wgWikiEditorPreferences.toolbar.enable ) {
importScript('User:Hydriz/refToolbarIE.js');
}
} else if (wgAction == 'edit' || wgAction == 'submit') {
importScript('User:Hydriz/refToolbarPlus.js');
}