The custom css remover now work with any mastodon instance
parent
ebebc36632
commit
ce544165d6
|
@ -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())
|
||||
|
||||
}
|
||||
|
||||
})()
|
||||
})()
|
Loading…
Reference in New Issue