您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bring my GitHub feed back
当前为
- // ==UserScript==
- // @name GitHub Feed Back
- // @namespace https://github.com/Sec-ant
- // @version 0.0.2
- // @author Ze-Zheng Wu
- // @description Bring my GitHub feed back
- // @license MIT
- // @icon https://github.githubassets.com/favicons/favicon.svg
- // @homepage https://github.com/Sec-ant/github-feed-back
- // @homepageURL https://github.com/Sec-ant/github-feed-back
- // @source https://github.com/Sec-ant/github-feed-back
- // @supportURL https://github.com/Sec-ant/github-feed-back/issues
- // @match https://github.com/*
- // @run-at document-start
- // ==/UserScript==
- (function () {
- 'use strict';
- let found = 0;
- const observer = new MutationObserver((_, observer2) => {
- const includeFragment = document.querySelector(
- '[data-target="feed-container.content"] > include-fragment'
- );
- if (includeFragment) {
- includeFragment.src = "/dashboard-feed";
- ++found;
- }
- const filterButton = document.querySelector(
- '[data-target="feed-container.feedTitle"] + div'
- );
- if (filterButton) {
- filterButton.remove();
- ++found;
- }
- if (found > 1) {
- observer2.disconnect();
- }
- });
- observer.observe(document.documentElement, {
- childList: true,
- subtree: true
- });
- document.addEventListener("DOMContentLoaded", () => {
- observer.disconnect();
- });
- })();