Spellcheck for CW input
commit
9a1e7d1805
|
@ -0,0 +1,15 @@
|
|||
// ==UserScript==
|
||||
// @name Force spellcheck on Mastodon's Content Warning input
|
||||
// @version 1.0.0
|
||||
// @match https://*/web/*
|
||||
// @run-at document-end
|
||||
// ==/UserScript==
|
||||
|
||||
(function () {
|
||||
if (document.querySelector('#mastodon')) {
|
||||
setTimeout(() => {
|
||||
const attr = document.createAttribute('spellcheck') attr.value = true document.querySelector('#cw-spoiler-input').attributes.setNamedItem(attr)
|
||||
}, 1000)
|
||||
}
|
||||
})()
|
||||
|
Loading…
Reference in New Issue