Ero sivun ”Järjestelmäviesti:Common.js” versioiden välillä
Siirry navigaatioon
Siirry hakuun
Ak: Uusi sivu: // Hide page actions from public wiki // Get the current page URL var currentUrl = window.location.href; // Define the base URL to match var baseUrl = "https://wiki.praedor.net/"; // Check if the current URL matches the base URL if (currentUrl.indexOf(baseUrl) === 0) { // If the URLs match, hide the element with the "page-actions" class var elementsToHide = document.getElementsByClassName("page-actions"); for (var i = 0; i < elementsToHide.length; i++) { elements... |
Ei muokkausyhteenvetoa Merkkaus: Palautettu |
||
| Rivi 15: | Rivi 15: | ||
} | } | ||
} | } | ||
document.addEventListener('DOMContentLoaded', function() { | |||
setPref('dark'); | |||
}); | |||
Versio 21. maaliskuuta 2023 kello 21.54
// Hide page actions from public wiki
// Get the current page URL
var currentUrl = window.location.href;
// Define the base URL to match
var baseUrl = "https://wiki.praedor.net/";
// Check if the current URL matches the base URL
if (currentUrl.indexOf(baseUrl) === 0) {
// If the URLs match, hide the element with the "page-actions" class
var elementsToHide = document.getElementsByClassName("page-actions");
for (var i = 0; i < elementsToHide.length; i++) {
elementsToHide[i].style.display = "none";
}
}
document.addEventListener('DOMContentLoaded', function() {
setPref('dark');
});