The custom css remover now work with any mastodon instance
parent
ebebc36632
commit
ce544165d6
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Remove Travelpandas custom CSS
|
// @name Remove Mastodon custom CSS
|
||||||
// @version 1.0.0
|
// @version 2.0.0
|
||||||
// @match https://travelpandas.fr/*
|
// @match https://*/*
|
||||||
// @run-at document-end
|
// @run-at document-end
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
|
@ -9,8 +9,10 @@
|
||||||
|
|
||||||
if (document.querySelector('#mastodon')) {
|
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())
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
})()
|
})()
|
Loading…
Reference in New Issue