您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
make chat lmsys chat better and clean
当前为
- // ==UserScript==
- // @name Better LMSYS Chat
- // @namespace https://github.com/insign/better-lmsys-chat
- // @version 202403152308
- // @description make chat lmsys chat better and clean
- // @match https://chat.lmsys.org
- // @icon https://www.google.com/s2/favicons?sz=64&domain=lmsys.org
- // @author Hélio <insign@gmail.com>
- // @copyright Hélio <insign@gmail.com>
- // @license WTFPL
- // ==/UserScript==
- (function() {
- 'use strict'
- const $ = document.querySelector.bind(document)
- const again = (f, ms = 100) => setTimeout(f, ms)
- const hide = el => el.style.display = 'none'
- const remove = (el) => el.remove()
- const onceExists = (sel, callback) => sel ? callback(sel) : again(() => onceExists(sel, callback))
- onceExists($('.svelte-1ed2p3z'), remove) // Rules
- onceExists($('#ack_markdown'), remove) // Terms
- })()