您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Double click on nickname in the right menu to quickly mention the user
// ==UserScript== // @name quickMention // @namespace https://gist.github.com/yegorgunko // @version 0.4 // @description Double click on nickname in the right menu to quickly mention the user // @author Yegor Gunko // @match https://shikme.ru/ // @icon https://shikme.ru/default_images/icon.png?v=1528136794 // @grant none // ==/UserScript== const quickMention=()=>{document.body.addEventListener("dblclick",e=>{if(e.target.classList.contains("username")){const t=document.getElementById("content");t.value+=`${e.target.innerHTML}, `,t.focus()}})};document.addEventListener("DOMContentLoaded",void document.body.addEventListener("dblclick",e=>{if(e.target.classList.contains("username")){const t=document.getElementById("content");t.value+=`${e.target.innerHTML}, `,t.focus()}}),!1);