From 2de6cdb3f992df3adc25c8fdfbcc0a56f54a944b Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 4 Jul 2020 14:24:29 -0500 Subject: [PATCH] refactor(data): lint Tag.json --- data/Tag.json | 78 +++++++++++++++++++++++++-------------------------- data/lint.sh | 3 ++ 2 files changed, 42 insertions(+), 39 deletions(-) diff --git a/data/Tag.json b/data/Tag.json index 4b167af5e..1110aaaf0 100644 --- a/data/Tag.json +++ b/data/Tag.json @@ -1,197 +1,197 @@ [ { - "id": 1, "description": "Blocks cryptomining and/or cryptojacking", + "id": 1, "name": "crypto" }, { - "id": 2, "description": "Blocks advertisements", + "id": 2, "name": "ads" }, { - "id": 3, "description": "Blocks trackers and other privacy-invasive resources", + "id": 3, "name": "privacy" }, { - "id": 4, "description": "Blocks social media scripts, trackers, widgets, comment sections, etc.", + "id": 4, "name": "social" }, { - "id": 5, "description": "Blocks adblock detection scripts", + "id": 5, "name": "anti-adblock" }, { - "id": 6, "description": "Blocks malicious resources", + "id": 6, "name": "malware" }, { - "id": 7, "description": "Blocks phishing and/or scam resources", + "id": 7, "name": "phishing" }, { - "id": 8, "description": "Blocks cookie notices primarily in response to the EU Cookie Law and GDPR", + "id": 8, "name": "cookies" }, { - "id": 9, "description": "Blocks subjectively annoying resources", + "id": 9, "name": "annoyances" }, { - "id": 10, "description": "Unblocks categorical resources", + "id": 10, "name": "whitelist" }, { - "id": 11, "description": "Blocks adult, NSFW, pornographic, etc. resources", + "id": 11, "name": "nsfw" }, { - "id": 12, "description": "Redirects traffic through proxies to get around firewalls or service shutdowns", + "id": 12, "name": "proxy" }, { - "id": 13, "description": "Extends or blocks functionality from search engines", + "id": 13, "name": "search" }, { - "id": 14, "description": "Intended for research only", + "id": 14, "name": "research" }, { - "id": 15, "description": "Blocks specific topics/things", + "id": 15, "name": "topical" }, { - "id": 16, "description": "Removes obstructing or annoying overlays", + "id": 16, "name": "overlay" }, { - "id": 17, "description": "Blocks gambling resources", + "id": 17, "name": "gambling" }, { - "id": 18, "description": "Removes website-embedded fonts", + "id": 18, "name": "fonts" }, { - "id": 19, "description": "Blocks resources from certain companies", + "id": 19, "name": "anti-corp" }, { - "id": 20, "description": "Lists that are of special interest to IT admins", + "id": 20, "name": "admin" }, { - "id": 21, "description": "Lists that remove news stories of subjectively low quality", + "id": 21, "name": "clickbait" }, { - "id": 22, "description": "Blocks religious or superstitious content", + "id": 22, "name": "religious" }, { - "id": 23, "description": "Blocks pages from link-shortening services", + "id": 23, "name": "shorteners" }, { - "id": 24, "description": "Blocks piracy-focusing sites", + "id": 24, "name": "piracy" }, { - "id": 25, "description": "Blocks political content", + "id": 25, "name": "politics" }, { - "id": 26, "description": "Blocks software updates", + "id": 26, "name": "updates" }, { - "id": 27, "description": "Userstyles in adblocker syntax that change the appearance of sites", + "id": 27, "name": "userstyle" }, { - "id": 28, "description": "Blocks requests that ask you to subscribe to newsletters", + "id": 28, "name": "newsletters" }, { - "id": 29, "description": "Prevents \"How can I help you?\" prompts from popping up", + "id": 29, "name": "helpprompt" }, { - "id": 30, "description": "Blocks certain cultural content", + "id": 30, "name": "cultural" }, { - "id": 31, "description": "Removes empty boxes that remain after other things were blocked", + "id": 31, "name": "empty-box" }, { - "id": 32, "description": "Blocks prompts to subscribe to push notifications", + "id": 32, "name": "push-notes" }, { - "id": 33, "description": "Blocks promotions of websites' own mobile apps", + "id": 33, "name": "app-download" }, { - "id": 34, "description": "Lists designed for units that are neither PCs or phones, e.g. TVs, game consoles, smart-sticks, etc.", + "id": 34, "name": "media-unit" }, { - "id": 35, "description": "Lists that deal with specific sites or site groups only, without blocking them entirely", + "id": 35, "name": "site-specific" }, { - "id": 36, "description": "Lists known to be so big as to begin to cause loading/processing issues on weaker units, e.g. old phones", + "id": 36, "name": "≥250K entries" }, { - "id": 37, "description": "Blocks Dynamic DNS (DDNS) address providers and hosts", + "id": 37, "name": "dynamic-domains" }, { - "id": 38, "description": "Pre-stable lists where maintainers are extra interested in feedback", + "id": 38, "name": "beta" }, { - "id": 39, "description": "Replaces file and page sources to make them load faster", + "id": 39, "name": "cdn-replacer" } ] diff --git a/data/lint.sh b/data/lint.sh index 386b710bf..d65833331 100644 --- a/data/lint.sh +++ b/data/lint.sh @@ -38,3 +38,6 @@ mv SoftwareSyntax.tmp SoftwareSyntax.json jq -S ".|=sort_by(.id)" Syntax.json > Syntax.tmp mv Syntax.tmp Syntax.json + +jq -S ".|=sort_by(.id)" Tag.json > Tag.tmp +mv Tag.tmp Tag.json