您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Block the feed
- // ==UserScript==
- // @name Planets.nu Feedblock Script
- // @namespace https://greasyfork.org/users/2984
- // @version 1.0
- // @description Block the feed
- // @author Dotman
- // @copyright 2016, Dotman
- // @license CC BY-NC-ND 4.0 (http://creativecommons.org/licenses/by-nc-nd/4.0/)
- // @include http://planets.nu/#/*
- // @include http://planets.nu/*
- // ==/UserScript==
- var hideFeed = function() {
- $('div#eactivitycol').remove();
- $('div#eactivityfooter').remove();
- hideFeed.cnt = hideFeed.cnt + 1;
- if (hideFeed.cnt < 100) {
- setTimeout(hideFeed,100);
- }
- };
- (function() {
- 'use strict';
- $(document).ready(function() {
- hideFeed.cnt = 0;
- setTimeout(hideFeed, 100);
- });
- })();