diff --git a/Mastodon/remove custom css.js b/Mastodon/remove custom css.js index f42603f..909a92e 100644 --- a/Mastodon/remove custom css.js +++ b/Mastodon/remove custom css.js @@ -1,7 +1,7 @@ // ==UserScript== -// @name Remove Travelpandas custom CSS -// @version 1.0.0 -// @match https://travelpandas.fr/* +// @name Remove Mastodon custom CSS +// @version 2.0.0 +// @match https://*/* // @run-at document-end // ==/UserScript== @@ -9,8 +9,10 @@ if (document.querySelector('#mastodon')) { - document.querySelector('link[href="https://travelpandas.fr/custom.css"]')?.remove() + document + .querySelectorAll('link[rel="stylesheet"]:not([crossorigin])') + .forEach(e => e.remove()) } -})() +})() \ No newline at end of file