// ==UserScript== // @name ao3 hide some tags // @description Auto hide some tags you don't like to see // @namespace ao3 // @include http*://archiveofourown.org/* // @grant none // @version 1.1 // @downloadURL https://update.greasyfork.icu/scripts/5081/ao3%20hide%20some%20tags.user.js // @updateURL https://update.greasyfork.icu/scripts/5081/ao3%20hide%20some%20tags.meta.js // ==/UserScript== (function($) { /**** CONFIG ********************/ var tagsToHide = ["camel spiders", "*worms", "ticks"]; // use * for wildcard var buttonLabel = "~"; /********************************/ $('.blurb ul.tags, .meta .tags ul').each(function() { var $list = $(this); $list.find('a.tag').each(function() { var $tag = $(this); var text = $tag.text(); for (var i = 0, len = tagsToHide.length; i < len; i++) { if (termsMatch(text, tagsToHide[i])) { hideTagsList($list); return false; } } }); }); function hideTagsList($list) { $list.hide(); $('