【聊天室输入框占位符】

可以时刻提醒你注意在聊天室的言行(

目前為 2022-12-19 提交的版本,檢視 最新版本

// ==UserScript==
// @name         【聊天室输入框占位符】
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  可以时刻提醒你注意在聊天室的言行(
// @author       You
// @match        hack.chat/?*
// @match        crosst.chat/?*
// @match        http://tanchat.fun/?*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        GM_setValue
// @grant        GM_getValue
// @license      WTFPL
// ==/UserScript==

(function() {
    'use strict';
        if (!GM_getValue('placeholder')) {
        GM_setValue('placeholder','发一条友善的消息')
    }
    document.getElementById('chatinput').placeholder = GM_getValue('placeholder')
})();