The custom css remover now work with any mastodon instance

monster
clov 2023-07-19 15:16:50 +02:00
parent ebebc36632
commit ce544165d6
1 changed files with 7 additions and 5 deletions

View File

@ -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())
}
})()
})()