您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
アラビア文字を入力したときピンクで警告
// ==UserScript== // @name Open2ch アラビア文字規制避け // @namespace https://onjmin.glitch.me/ // @version 1.0.0 // @description アラビア文字を入力したときピンクで警告 // @author おんJ民 // @match *://*.open2ch.net/*/* // @icon https://avatars.githubusercontent.com/u/88383494 // @grant none // @license GNU Affero General Public License v3.0 or later // ==/UserScript== (function() { 'use strict'; const ngList = [ 8239, 65279 ]; window.document.addEventListener('paste', (e) => { if (e.target.tagName !== 'TEXTAREA') return; const pasteData = (e.clipboardData || window.clipboardData).getData('text'); for (const ng of ngList) { if (pasteData.includes(String.fromCharCode(ng))) { e.target.style.backgroundColor = 'pink'; [...document.querySelectorAll('[type="submit"]')].forEach(e => { e.disabled = true; }); } } }); })();