您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
はてなブックマークにて、自分が付けたスターを点滅させて見分けがつくようにします。
// ==UserScript== // @name blink-star // @namespace jp.hateblo.htsign // @description はてなブックマークにて、自分が付けたスターを点滅させて見分けがつくようにします。 // @match http://b.hatena.ne.jp/* // @match https://b.hatena.ne.jp/* // @version 1.0.8 // @grant none // ==/UserScript== (async g => { const root = g.document.documentElement; if (!root || !root.dataset.pageScope) return; const res = await fetch(`${g.origin}/api/my/profile`, { credentials: 'include' }); const { status, name } = await res.json(); if (status !== 1) return; const style = g.document.createElement('style'); g.document.head.appendChild(style); style.sheet.insertRule(` @keyframes blink-star { from { opacity: 1.0 } to { opacity: 0.3 } }`); style.sheet.insertRule(` a.hatena-star-star[href$="/${name}"] { animation: blink-star 300ms infinite ease-in alternate; }`); })(window);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址