"മീഡിയവിക്കി:Common.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം
(ചെ.)No edit summary |
(ചെ.) updated the link |
||
| വരി 2: | വരി 2: | ||
*/ | */ | ||
window.onload = function () { | |||
// Find all image elements on the page | // Find all image elements on the page | ||
var images = document.querySelectorAll('img'); | var images = document.querySelectorAll('img'); | ||
| വരി 13: | വരി 13: | ||
if (img.src.startsWith("https://tile.openstreetmap.org/v4/marker/")) { | if (img.src.startsWith("https://tile.openstreetmap.org/v4/marker/")) { | ||
// Replace the `src` with the desired URL | // Replace the `src` with the desired URL | ||
var newSrc = img.src.replace("https://tile.openstreetmap.org/v4/marker/ | var newSrc = img.src.replace("https://tile.openstreetmap.org/v4/marker/", "https://maps.wikimedia.org/v4/marker/"); | ||
img.src = newSrc; | img.src = newSrc; | ||
| വരി 23: | വരി 23: | ||
} | } | ||
}; | }; | ||
//Quick Edit Box | //Quick Edit Box | ||