From ce544165d61ad7150a6e1b1d639312307c97e1ff Mon Sep 17 00:00:00 2001 From: clov Date: Wed, 19 Jul 2023 15:16:50 +0200 Subject: [PATCH] The custom css remover now work with any mastodon instance --- Mastodon/remove custom css.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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