ചെക്ക് യൂസർമാർ, emailconfirmed, സമ്പർക്കമുഖ കാര്യനിർവാഹകർ, kiteuser, oversight, കാര്യനിർവാഹകർ, അപ്ലോഡ് സഹായി മേള തിരുത്തുന്നവർ
783
തിരുത്തലുകൾ
(ചെ.)No edit summary |
(ചെ.)No edit summary |
||
| വരി 1: | വരി 1: | ||
// mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); | // mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript'); | ||
window.onload = function() { | window.onload = function () { | ||
// Find all | // Find all image elements on the page | ||
var | var images = document.querySelectorAll('img'); | ||
// Loop through the images and | // Loop through the images and modify the `src` if it matches the criteria | ||
for (var i = 0; i < | for (var i = 0; i < images.length; i++) { | ||
var img = images[i]; | |||
// Apply CSS to | // Check if the `src` starts with the specified URL | ||
if (img.src.startsWith("https://tile.openstreetmap.org/v4/marker/")) { | |||
// Replace the `src` with the desired URL | |||
var newSrc = img.src.replace("https://tile.openstreetmap.org/v4/marker/", "https://schoolwiki.in/File:"); | |||
img.src = newSrc; | |||
// Apply CSS to adjust display | |||
img.style.width = "20px"; // Adjust width | |||
img.style.height = "50px"; // Adjust height | |||
img.style.paddingBottom = "20px"; // Adjust positioning | |||
} | |||
} | } | ||
}; | }; | ||
തിരുത്തലുകൾ