您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Highlights original poster's name on Hacker News
当前为
// ==UserScript== // @name HN Highlight Original Poster // @namespace https://github.com/tekinosman/ // @version 1.1 // @license MIT // @description Highlights original poster's name on Hacker News // @author Osman Tekin // @match https://news.ycombinator.com/item?id=* // @match http://news.ycombinator.com/item?id=* // @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com // @grant none // ==/UserScript== // Original poster is the first user let originalPoster = document.querySelector('.hnuser').innerText; document.querySelectorAll("a[href='user?id="+originalPoster+"']").forEach( el => { el.style.background = "#ccc"; el.style.color = "#f9f9f9"; el.style.padding = "2px"; el.style.borderRadius = "2px"; });