UserScripts/Mastodon/remove custom css.js

18 lines
358 B
JavaScript

// ==UserScript==
// @name Remove Mastodon custom CSS
// @version 2.0.0
// @match https://*/*
// @run-at document-end
// ==/UserScript==
(function () {
if (document.querySelector('#mastodon')) {
document
.querySelectorAll('link[rel="stylesheet"]:not([crossorigin])')
.forEach(e => e.remove())
}
})()