Spellcheck for CW input

monster
clov 2022-10-20 08:02:42 +02:00
commit 9a1e7d1805
2 changed files with 18 additions and 0 deletions

15
Mastodon/spellcheck-cw.js Normal file
View File

@ -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)
}
})()

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# UserScripts
Collection of UserScripts