Skip to content

Instantly share code, notes, and snippets.

@unarist
Last active June 23, 2018 14:24
Show Gist options
  • Save unarist/1993d1a7a8ab66d030adb946314dc373 to your computer and use it in GitHub Desktop.
Save unarist/1993d1a7a8ab66d030adb946314dc373 to your computer and use it in GitHub Desktop.
ピクトセンスで入力欄の補完を潰すやつ
// ==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