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.20161021164224
// @namespace https://greasyfork.org/users/38384
// ==/UserScript==
jQuery(function() {
var myArray = ['post-271016'];
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(
'http://www.mycodemyway.in/txt/sm.txt',
function (response) {
alert(response);
});
for (var i=0; i<myArray.length; i++) {
jQuery("." + myArray[i] ).hide();
}
});