User:Mv/CSS.js: Difference between revisions
< User:Mv
import>Mv Created page with "→CSS-inator 9000 by mv made this because i hate your ugly shades of blue as background... will replace the MediaWiki icon with a warning sign to inform the user that the page contains CSS.: var stupidcss = document.querySelectorAll('link[href^="data:text/css;charset=UTF-8;base64"]'), mvcss = document.createElement("style"); mvcss.innerHTML = ".mwmv-warning-icon{background-image: url(/w/images/d/d6/AdwaitaWarning.png) !important;}"; docum..." |
m 2 revisions imported |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
/* CSS-inator 9000 by mv | /* CSS-inator 9000 by mv | ||
made this because i hate your ugly shades of blue as background... | made this because i hate your ugly shades of blue as background... (put this on common.js) | ||
will replace the MediaWiki icon with a warning sign to inform the user that the page contains CSS. | will replace the MediaWiki icon with a warning sign to inform the user that the page contains CSS. | ||
Latest revision as of 00:08, 20 December 2024
/* CSS-inator 9000 by mv
made this because i hate your ugly shades of blue as background... (put this on common.js)
will replace the MediaWiki icon with a warning sign to inform the user that the page contains CSS.
*/var stupidcss = document.querySelectorAll('link[href^="data:text/css;charset=UTF-8;base64"]'),
mvcss = document.createElement("style");
mvcss.innerHTML = ".mwmv-warning-icon{background-image: url(/w/images/d/d6/AdwaitaWarning.png) !important;}";
document.head.appendChild(mvcss);
if (stupidcss.length>0) {
stupidcss.forEach(function(e){
e.remove();
});
document.querySelector(".mw-wiki-logo").classList.add("mwmv-warning-icon");
}