// ==UserScript== // @name ao3 work block // @namespace https://greasyfork.org/en/users/36620 // @version 0.1 // @description permanently hide works that you've blocked // @author scriptfairy // @match http*://archiveofourown.org/*works* // @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js // @grant GM_setValue // @grant GM_listValues // @downloadURL none // ==/UserScript== (function($) { function blockThis(work) { var id = $(work).attr('id'); GM_setValue(id, id); } function blockAll() { var ids = GM_listValues(); for (j=0;jBlock'); } $('.datetime').click(function() { blockThis($(this).parents('li.blurb')); $(this).parents('li.blurb').hide(); }); }); })(window.jQuery);