MediaWiki:Gadget-WiktAjaxTransLinks.js
Note: You may have to bypass your browser’s cache to see the changes. In addition, after saving a sitewide CSS file such as MediaWiki:Common.css, it will take 5-10 minutes before the changes take effect, even if you clear your cache.
- Mozilla / Firefox / Safari: hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Command-R on a Macintosh);
- Konqueror and Chrome: click Reload or press F5;
- Opera: clear the cache in Tools → Preferences;
- Internet Explorer: hold Ctrl while clicking Refresh, or press Ctrl-F5.
- The following documentation is located at MediaWiki:Gadget-WiktAjaxTransLinks.js/documentation. [edit]
- This script is not a part of any gadget (edit definitions).
- Useful links: subpage list • links • redirects
See also: Special:Gadgets.
// <nowiki>
function disableWiktAjaxTransLinks(){
// test for javascript 1.7 == test for gecko >= rv:1.8.1
var ua = navigator.userAgent.toLowerCase();
if (/gecko/.test(ua)) {
var rv = ua.match(/\brv:(\d+)\.(\d+)(?:\.\d+)*/);
if (rv) {
if (rv[1] > 1) return false;
if (rv[1] == 1) {
if (rv[2] > 8) return false;
if (rv[2] == 8) {
if (rv[3] >= 1) return false;
}
}
}
}
return true;
}
s = disableWiktAjaxTransLinks()
if (s===false){
importScript('User:Hippietrail/ajaxtranslinks.js');
}
// </nowiki>