您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
診断メーカー内のハッシュタグ検索に加えTwitterの検索ボタンを追加します。長期間のエゴサ用に。
// ==UserScript== // @name ShindanmakerHashtag"SoT"Script // @namespace https://twitter.com/KamakuraChannel // @description 診断メーカー内のハッシュタグ検索に加えTwitterの検索ボタンを追加します。長期間のエゴサ用に。 // @match https://shindanmaker.com/* // @author カマクラ (Kamakura) // @version 2.0 // @grant none // ==/UserScript== // スクリプト名の"SoT"とはSearch on Twitterのことです。 (function () { let links = document.querySelectorAll('a.hashtaglabel'); if (links) { let tag = []; const newButton = function(tagname) { return '<a class="hashtaglabel" href="https://www.twitter.com/hashtag/' + tagname + '?src=hash" target="_blank">SoT</a>'; }; links.forEach(function(v,i) { tag[i] = v.getAttribute('href').split('?sw=%23')[1]; v.outerHTML += newButton(tag[i]); }); } }) ();