您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
change threadline's tag to button, so vimium can follow it
// ==UserScript== // @name reddit threadline for vimium // @namespace pmhgms // @version 0.3 // @description change threadline's tag to button, so vimium can follow it // @author pmhgms // @match https://www.reddit.com/* // @grant none // ==/UserScript== function swap(){ var e = document.getElementsByClassName("threadline"); for(var i = 0; i < e.length; i++){ var d = document.createElement('button'); d.setAttribute("class","threadline"); e[i].parentNode.replaceChild(d, e[i]); } } function swapagain(event) { if(event.code == "Space"){ swap(); } } document.addEventListener('keypress', swapagain); swap(); setTimeout(function(){swap();}, 10000);