16 lines
437 B
JavaScript
16 lines
437 B
JavaScript
// ==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)
|
|
}
|
|
})()
|
|
|