reject-data-source.js 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /** @type {[string, boolean][]} */
  2. const HOSTS = [
  3. ['https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext', true],
  4. ['https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt', false],
  5. ['https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt', false],
  6. ['https://raw.githubusercontent.com/jerryn70/GoodbyeAds/master/Extension/GoodbyeAds-Xiaomi-Extension.txt', false],
  7. ['https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts', false]
  8. ]
  9. const ADGUARD_FILTERS = [
  10. // Easy List
  11. [
  12. 'https://easylist.to/easylist/easylist.txt',
  13. [
  14. 'https://easylist-downloads.adblockplus.org/easylist.txt',
  15. 'https://raw.githubusercontent.com/easylist/easylist/gh-pages/easylist.txt',
  16. 'https://secure.fanboy.co.nz/easylist.txt'
  17. ]
  18. ],
  19. // AdGuard DNS Filter
  20. 'https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt',
  21. // AdGuard CNAME Filter Combined
  22. 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers.txt',
  23. // uBlock Origin Filter List
  24. [
  25. 'https://ublockorigin.github.io/uAssets/filters/filters.txt',
  26. [
  27. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters.txt',
  28. 'https://ublockorigin.pages.dev/filters/filters.txt'
  29. ]
  30. ],
  31. [
  32. 'https://ublockorigin.github.io/uAssets/filters/filters-2020.txt',
  33. [
  34. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2020.txt',
  35. 'https://ublockorigin.pages.dev/filters/filters-2020.txt'
  36. ]
  37. ],
  38. [
  39. 'https://ublockorigin.github.io/uAssets/filters/filters-2021.txt',
  40. [
  41. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2021.txt',
  42. 'https://ublockorigin.pages.dev/filters/filters-2021.txt'
  43. ]
  44. ],
  45. [
  46. 'https://ublockorigin.github.io/uAssets/filters/filters-2022.txt',
  47. [
  48. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2022.txt',
  49. 'https://ublockorigin.pages.dev/filters/filters-2022.txt'
  50. ]
  51. ],
  52. // uBlock Origin Badware Risk List
  53. [
  54. 'https://ublockorigin.github.io/uAssets/filters/badware.txt',
  55. [
  56. 'https://ublockorigin.github.io/uAssetsCDN/filters/badware.txt',
  57. 'https://ublockorigin.pages.dev/filters/badware.txt'
  58. ]
  59. ],
  60. // uBlock Origin Privacy List
  61. [
  62. 'https://ublockorigin.github.io/uAssets/filters/privacy.txt',
  63. [
  64. 'https://ublockorigin.github.io/uAssetsCDN/filters/privacy.txt',
  65. 'https://ublockorigin.pages.dev/filters/privacy.txt'
  66. ]
  67. ],
  68. // uBlock Origin Resource Abuse
  69. [
  70. 'https://ublockorigin.github.io/uAssets/filters/resource-abuse.txt',
  71. [
  72. 'https://ublockorigin.github.io/uAssetsCDN/filters/resource-abuse.txt',
  73. 'https://ublockorigin.pages.dev/filters/resource-abuse.txt'
  74. ]
  75. ],
  76. // uBlock Origin Unbreak
  77. [
  78. 'https://ublockorigin.github.io/uAssets/filters/unbreak.txt',
  79. [
  80. 'https://ublockorigin.github.io/uAssetsCDN/filters/unbreak.txt',
  81. 'https://ublockorigin.pages.dev/filters/unbreak.txt'
  82. ]
  83. ],
  84. // AdGuard Base Filter
  85. 'https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt',
  86. // AdGuard Mobile AD
  87. 'https://filters.adtidy.org/extension/ublock/filters/11_optimized.txt',
  88. // AdGuard Tracking Protection
  89. 'https://filters.adtidy.org/extension/ublock/filters/3_optimized.txt',
  90. // AdGuard Japanese filter
  91. 'https://filters.adtidy.org/extension/ublock/filters/7_optimized.txt',
  92. // AdGuard Chinese filter (EasyList China + AdGuard Chinese filter)
  93. 'https://filters.adtidy.org/extension/ublock/filters/224_optimized.txt',
  94. // AdGuard Annoyances filter
  95. 'https://filters.adtidy.org/android/filters/14_optimized.txt',
  96. // EasyList Germany filter
  97. [
  98. 'https://easylist.to/easylistgermany/easylistgermany.txt',
  99. [
  100. 'https://easylist-downloads.adblockplus.org/easylistgermany.txt'
  101. ]
  102. ],
  103. // Easy Privacy
  104. [
  105. 'https://easylist.to/easylist/easyprivacy.txt',
  106. [
  107. 'https://secure.fanboy.co.nz/easyprivacy.txt',
  108. 'https://raw.githubusercontent.com/easylist/easylist/gh-pages/easyprivacy.txt',
  109. 'https://easylist-downloads.adblockplus.org/easyprivacy.txt'
  110. ]
  111. ],
  112. // Curben's UrlHaus Malicious URL Blocklist
  113. [
  114. 'https://curbengh.github.io/urlhaus-filter/urlhaus-filter-agh-online.txt',
  115. [
  116. 'https://urlhaus-filter.pages.dev/urlhaus-filter-agh-online.txt',
  117. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  118. // 'https://malware-filter.gitlab.io/urlhaus-filter/urlhaus-filter-agh-online.txt'
  119. ]
  120. ],
  121. // Curben's Phishing URL Blocklist
  122. [
  123. 'https://curbengh.github.io/phishing-filter/phishing-filter-agh.txt',
  124. [
  125. 'https://phishing-filter.pages.dev/phishing-filter-agh.txt',
  126. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  127. // 'https://malware-filter.gitlab.io/malware-filter/phishing-filter-agh.txt'
  128. ]
  129. ],
  130. // Curben's PUP Domains Blocklist
  131. [
  132. 'https://curbengh.github.io/pup-filter/pup-filter-agh.txt',
  133. [
  134. 'https://pup-filter.pages.dev/pup-filter-agh.txt',
  135. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  136. // 'https://malware-filter.gitlab.io/malware-filter/pup-filter-agh.txt'
  137. ]
  138. ],
  139. // GameConsoleAdblockList
  140. 'https://raw.githubusercontent.com/DandelionSprout/adfilt/master/GameConsoleAdblockList.txt',
  141. // PiHoleBlocklist
  142. 'https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV-AGH.txt',
  143. // Spam404
  144. 'https://raw.githubusercontent.com/Spam404/lists/master/adblock-list.txt',
  145. // BarbBlock
  146. 'https://paulgb.github.io/BarbBlock/blacklists/ublock-origin.txt',
  147. // Brave First Party & First Party CNAME
  148. 'https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty.txt',
  149. 'https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty-cname.txt'
  150. ];
  151. const PREDEFINED_WHITELIST = [
  152. 'localhost',
  153. 'broadcasthost',
  154. 'ip6-loopback',
  155. 'ip6-localnet',
  156. 'ip6-mcastprefix',
  157. 'ip6-allnodes',
  158. 'ip6-allrouters',
  159. 'ip6-allhosts',
  160. 'mcastprefix',
  161. 'skk.moe',
  162. 'analytics.google.com',
  163. 'msa.cdn.mediaset.net', // Added manually using DOMAIN-KEYWORDS
  164. 'cloud.answerhub.com',
  165. 'ae01.alicdn.com',
  166. 'whoami.akamai.net',
  167. 'whoami.ds.akahelp.net',
  168. 'pxlk9.net.', // This one is malformed from EasyList, which I will manually add instead
  169. 'instant.page', // No, it doesn't violate anyone's privacy. I will whitelist it
  170. 'piwik.pro',
  171. 'mixpanel.com',
  172. 'cdn.mxpnl.com',
  173. 'heapanalytics.com',
  174. 'segment.com',
  175. 'segmentify.com',
  176. 't.co', // pgl yoyo add t.co to the blacklist
  177. 'survicate.com', // AdGuardDNSFilter
  178. 'perfops.io', // AdGuardDNSFilter
  179. 'd2axgrpnciinw7.cloudfront.net', // ADGuardDNSFilter
  180. 'tb-lb.sb-cd.com', // AdGuard
  181. 'storage.yandexcloud.net', // phishing list
  182. 'login.microsoftonline.com', // phishing list
  183. 'api.xiaomi.com', // https://github.com/jerryn70/GoodbyeAds/issues/281
  184. 'api.io.mi.com', // https://github.com/jerryn70/GoodbyeAds/issues/281
  185. 'cdn.userreport.com', // https://github.com/AdguardTeam/AdGuardSDNSFilter/issues/1158
  186. ];
  187. module.exports.HOSTS = HOSTS;
  188. module.exports.ADGUARD_FILTERS = ADGUARD_FILTERS;
  189. module.exports.PREDEFINED_WHITELIST = PREDEFINED_WHITELIST;