您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
快捷展开微博,无需去找“展开”链接
当前为
// ==UserScript== // @name 快捷展开微博 // @namespace https://greasyfork.org/zh-CN/users/1073-hzhbest // @version 0.2 // @description 快捷展开微博,无需去找“展开”链接 // @author hzhbest // @match https://weibo.com/* // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; document.body.addEventListener('mouseover',texpand,false); function texpand(event){ let tnode = event.target; console.log('tnode: ', tnode); if (tnode.nodeName !== 'DIV' || !tnode.className || tnode.className.indexOf('detail_wbtext_') !== 0) { return; } let btnexpand = tnode.querySelector('span.expand'); if (!!btnexpand) { btnexpand.click(); } } })();