From ebebc36632b6fc8106255bea8f3307f372ec5bd6 Mon Sep 17 00:00:00 2001 From: clov Date: Sat, 12 Nov 2022 14:25:24 +0100 Subject: [PATCH] Add simple script to remove custom CSS from Mastodon instance travelpandas.fr (can be adapted) --- Mastodon/remove custom css.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Mastodon/remove custom css.js diff --git a/Mastodon/remove custom css.js b/Mastodon/remove custom css.js new file mode 100644 index 0000000..f42603f --- /dev/null +++ b/Mastodon/remove custom css.js @@ -0,0 +1,16 @@ +// ==UserScript== +// @name Remove Travelpandas custom CSS +// @version 1.0.0 +// @match https://travelpandas.fr/* +// @run-at document-end +// ==/UserScript== + +(function () { + + if (document.querySelector('#mastodon')) { + + document.querySelector('link[href="https://travelpandas.fr/custom.css"]')?.remove() + + } + +})()