├── Emp++_Tag_Highlighter.user.js ├── Emp++_Tag_Highlighter07.user.js └── Emp++_Tag_Highlighter08beta.user.js /Emp++_Tag_Highlighter.user.js: -------------------------------------------------------------------------------- 1 | // ==UserScript== 2 | // @name Emp++ Tag Highlighter 3 | // @version 0.6.3 4 | // @description highlights liked/disliked tags 5 | // @grant GM_getValue 6 | // @grant GM_setValue 7 | // @require https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js 8 | // @match http://*.empornium.me/* 9 | // @match https://*.empornium.me/* 10 | // @match http://empornium.me/* 11 | // @match https://empornium.me/* 12 | // @match http://*.empornium.sx/* 13 | // @match https://*.empornium.sx/* 14 | // @match http://empornium.sx/* 15 | // @match https://empornium.sx/* 16 | // @match http://pornbay.org/* 17 | // @match https://pornbay.org/* 18 | // @namespace LaMa 19 | // ==/UserScript== 20 | 21 | 22 | // Changelog: 23 | // Version 0.6.3 24 | // - Added text to inform of update 25 | // Version 0.6.2 26 | // - Preparing for new "branch". 27 | // - "Tag config" renamed "old tag config". 28 | // Version 0.6.1 29 | // - updated taglinks 30 | // Version 0.6.0 31 | // - Added more tag-groups 32 | // - Removed autodownvote, it shouldn't be used anyway (it's still in the code if you need to deactivate it or notice problems) 33 | // - Changed Useless tags to only be toggle-able on Disliked tags to save space. Let me know if you disagree with this decision 34 | // - Loved Performers/tags can be toggled after you liked a perfomer/tag 35 | // - few size changes to fit all in the config window 36 | 37 | function runScript(){ 38 | var $j = $.noConflict(true); 39 | 40 | var defaults = { 41 | majorVersion : 0.6, 42 | //Options 43 | truncateTags : true, 44 | //Browse Page Options 45 | usePercentBar : false, 46 | useTorrentOpacity : false, 47 | useTorrentColoring : false, 48 | //Tag types to use 49 | useGoodTags : true, 50 | useLovedTags : true, 51 | usePerformerTags : true, 52 | useLoveperfTags : true, 53 | useNewperfTags : true, 54 | useBadTags : true, 55 | useTerribleTags : false, 56 | useUselessTags : false 57 | }; 58 | 59 | var settings = getSettings(); 60 | 61 | settings = $j.extend(true, defaults, settings); 62 | 63 | if(settings.majorVersion < defaults.majorVersion){ 64 | settings.majorVersion = defaults.majorVersion; 65 | saveSettings(); 66 | //handle upgrade 67 | } 68 | 69 | //import tags from pre-v0.4 ETH 70 | if(!settings.tags){ 71 | settings.tags = { 72 | good : getValue("good_tags", "").split(' '), 73 | loved : getValue("loved_tags", "").split(' '), 74 | performer : getValue("performer_tags", "").split(' '), 75 | loveperf : getValue("loveperf_tags", "").split(' '), 76 | newperf : getValue("newperf_tags", "").split(' '), 77 | bad : getValue("bad_tags", "").split(' '), 78 | terrible : getValue("terrible_tags", "").split(' '), 79 | useless : getValue("useless_tags", "").split(' ') 80 | }; 81 | saveSettings(); 82 | } 83 | 84 | var configHTML = 85 | "