Jump to content
സഹായം

ಪ್ರವೇಶಿಸಿರಿ (ಸಹಾಯ)
உள்ளேற (உதவி)

"മീഡിയവിക്കി:Common.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

214 ബൈറ്റുകൾ കൂട്ടിച്ചേർത്തിരിക്കുന്നു ,  8 ജനുവരി
(ചെ.)
തിരുത്തലിനു സംഗ്രഹമില്ല
(ചെ.)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 images with the specified URL
     // Find all image elements on the page
     var markerImages = document.querySelectorAll('img[src="https://tile.openstreetmap.org/v4/marker/"]');
     var images = document.querySelectorAll('img');
   
 
     // Loop through the images and change their source
     // Loop through the images and modify the `src` if it matches the criteria
     for (var i = 0; i < markerImages.length; i++) {
     for (var i = 0; i < images.length; i++) {
         markerImages[i].src = "https://schoolwiki.in/File:";
         var img = images[i];
          
          
         // Apply CSS to ensure proper display
         // Check if the `src` starts with the specified URL
        markerImages[i].style.width = "20px";  // Adjust width as per your needs
        if (img.src.startsWith("https://tile.openstreetmap.org/v4/marker/")) {
        markerImages[i].style.height = "50px";  // Adjust height as per your needs
            // Replace the `src` with the desired URL
        markerImages[i].style.paddingBottom = "20px";  // Adjust positioning
            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
        }
     }
     }
};
};
"https://schoolwiki.in/പ്രത്യേകം:മൊബൈൽവ്യത്യാസം/2625738" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്