您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a "Watching" tab beside the "News Feed", "Pull Requests" and "Issues" tabs on the Github homepage
当前为
// ==UserScript== // @name Github.com - Add "Watching" tab // @namespace r-a-y/github/watching/homepage // @description Adds a "Watching" tab beside the "News Feed", "Pull Requests" and "Issues" tabs on the Github homepage // @include https://github.com/ // @version 1 // @grant none // ==/UserScript== var nav = document.getElementsByClassName('pagehead-nav'); var watchingLink = document.createElement('a'); watchingLink.href = '/watching'; watchingLink.setAttribute( 'class', 'pagehead-nav-item' ); watchingLink.innerHTML = '<span class="octicon octicon-eye"> </span> Watching'; nav[0].appendChild( watchingLink );