您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
permanently hide works that you've blocked
当前为
// ==UserScript== // @name ao3 work block // @namespace https://greasyfork.org/en/users/36620 // @version 0.1.5 // @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 // ==/UserScript== (function($) { function blockThis(work) { var id = $(work).attr('id'); GM_setValue(id, id); } function blockAll() { var ids = GM_listValues(); for (j=0;j<ids.length;j++) { $('li.blurb#'+ids[j]).hide(); } } $(document).ready(function() { blockAll(); var works = $('li.blurb'); for (i=0;i<works.length;i++) { $(works[i]).find('.datetime').prepend('<a href="javascript:void(0);">Block</a>'); } $('.datetime a').click(function() { blockThis($(this).parents('li.blurb')); $(this).parents('li.blurb').hide(); }); }); })(window.jQuery);