"മീഡിയവിക്കി:Common.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
No edit summary |
No edit summary |
||
| (ഒരേ ഉപയോക്താവ് ചെയ്ത ഇടയ്ക്കുള്ള 7 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല) | |||
| വരി 1: | വരി 1: | ||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); | |||
/* ============================================================ | /* ============================================================ | ||
OpenStreetMap marker URL fix | OpenStreetMap marker URL fix | ||
============================================================ */ | ============================================================ */ | ||
window.onload = function () { | |||
var images = document.querySelectorAll('img'); | var images = document.querySelectorAll('img'); | ||
for (var i = 0; i < images.length; i++) { | for (var i = 0; i < images.length; i++) { | ||
| വരി 8: | വരി 10: | ||
if ( | if ( | ||
img.src && | img.src && | ||
img.src. | img.src.startsWith("https://tile.openstreetmap.org/v4/marker/") | ||
) { | ) { | ||
img.src = img.src.replace( | img.src = img.src.replace( | ||
| വരി 15: | വരി 17: | ||
); | ); | ||
} | } | ||
}; | |||
}; | |||
} | |||
/* ============================================================ | /* ============================================================ | ||