您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide readed article
当前为
// ==UserScript== // @name SmashingMagazine // @description Hide readed article // @include http://www.smashingmagazine.com/* // @include https://www.smashingmagazine.com/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js // @version 0.0.1.20180201163946 // @namespace https://greasyfork.org/users/38384 // ==/UserScript== jQuery(function() { jQuery.ajaxPrefilter( function (options) { if (options.crossDomain && jQuery.support.cors) { var http = (window.location.protocol === 'http:' ? 'http:' : 'https:'); options.url = http + '//cors-anywhere.herokuapp.com/' + options.url; } }); jQuery.get('https://raw.githubusercontent.com/ranjitsachin/study/master/sm.js', function (response) { var res = response.split(","); var resLength = res.length, pageSize = 0; //debugger; for (var i=0; i<resLength; i++) { jQuery("h1.article--post__title a").each(function () { if (pageSize == 10) { return false; } var href = jQuery(this).prop('href'); if (href.indexOf(res[i]) != -1) { jQuery(this).closest("article").hide(); pageSize = pageSize + 1; } }); } }); });