Last active
June 23, 2018 14:24
-
-
Save unarist/1993d1a7a8ab66d030adb946314dc373 to your computer and use it in GitHub Desktop.
ピクトセンスで入力欄の補完を潰すやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ピクトセンスで入力欄の補完を潰す | |
// @namespace https://github.com/unarist/ | |
// @version 0.2 | |
// @description autocomplete='off' | |
// @author unarist | |
// @match http://pictsense.com/ | |
// @match https://pictsense.com/ | |
// @downloadURL https://gist.github.com/unarist/1993d1a7a8ab66d030adb946314dc373/raw/pictsense-disable-autocomplete.user.js | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
new MutationObserver((_, observer) => { | |
const target = document.querySelector('#chatText'); | |
if (!target) return; | |
target.autocomplete = 'off'; | |
observer.disconnect(); | |
}).observe(document.body, { childList: true, subtree: true }); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment