Browse Source

Simplifying ad blocking syntax

I simplified the ad blocking syntax.
"category-ads-all" includes "category-ads". Also "category-ads" includes "google-ads" and "spotify-ads".
So if "category-ads-all" is blocked, there is no need to block 3 other lists (category-ads,google-ads,spotify-ads)

References:
https://github.com/v2fly/domain-list-community/blob/master/data/category-ads
https://github.com/v2fly/domain-list-community/blob/master/data/category-ads-all
mmrabbani 1 year ago
parent
commit
5f44c80cd5
1 changed files with 1 additions and 4 deletions
  1. 1 4
      web/html/xui/settings.html

+ 1 - 4
web/html/xui/settings.html

@@ -371,9 +371,6 @@
                 domains: {
                     ads: [
                         "geosite:category-ads-all",
-                        "geosite:category-ads",
-                        "geosite:google-ads",
-                        "geosite:spotify-ads",
                         "ext:iran.dat:ads"
                     ],
                     speedtest: ["geosite:speedtest"],
@@ -1026,4 +1023,4 @@
     });
 </script>
 </body>
-</html>
+</html>