17 lines
460 B
JavaScript
17 lines
460 B
JavaScript
// ==UserScript==
|
|
// @name Per-Domain Userstyles
|
|
// @include *
|
|
// @run-at document-start
|
|
// @author Original by Olmo Kramer
|
|
// ==/UserScript==
|
|
|
|
(() => {
|
|
document.addEventListener("readystatechange", () => {
|
|
if (document.readyState == "interactive") {
|
|
const doc = document.documentElement
|
|
doc.setAttribute("data-qb-url", window.location.href)
|
|
doc.setAttribute("data-qb-domain", window.location.host)
|
|
}
|
|
})
|
|
})()
|