reject-data-source.js 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. false
  19. ],
  20. // Easy Privacy
  21. [
  22. 'https://easylist.to/easylist/easyprivacy.txt',
  23. [
  24. 'https://secure.fanboy.co.nz/easyprivacy.txt',
  25. 'https://raw.githubusercontent.com/easylist/easylist/gh-pages/easyprivacy.txt',
  26. 'https://easylist-downloads.adblockplus.org/easyprivacy.txt'
  27. ],
  28. false
  29. ],
  30. // AdGuard DNS Filter
  31. [
  32. 'https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt',
  33. [
  34. 'https://filters.adtidy.org/extension/chromium/filters/15.txt'
  35. ]
  36. ],
  37. // AdGuard CNAME Filter Combined
  38. 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/combined_disguised_trackers.txt',
  39. // uBlock Origin Filter List
  40. [
  41. 'https://ublockorigin.github.io/uAssets/filters/filters.txt',
  42. [
  43. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters.txt',
  44. 'https://ublockorigin.pages.dev/filters/filters.txt'
  45. ],
  46. false
  47. ],
  48. [
  49. 'https://ublockorigin.github.io/uAssets/filters/filters-2020.txt',
  50. [
  51. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2020.txt',
  52. 'https://ublockorigin.pages.dev/filters/filters-2020.txt'
  53. ],
  54. false
  55. ],
  56. [
  57. 'https://ublockorigin.github.io/uAssets/filters/filters-2021.txt',
  58. [
  59. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2021.txt',
  60. 'https://ublockorigin.pages.dev/filters/filters-2021.txt'
  61. ],
  62. false
  63. ],
  64. [
  65. 'https://ublockorigin.github.io/uAssets/filters/filters-2022.txt',
  66. [
  67. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2022.txt',
  68. 'https://ublockorigin.pages.dev/filters/filters-2022.txt'
  69. ],
  70. false
  71. ],
  72. [
  73. 'https://ublockorigin.github.io/uAssets/filters/filters-2023.txt',
  74. [
  75. 'https://ublockorigin.github.io/uAssetsCDN/filters/filters-2023.txt',
  76. 'https://ublockorigin.pages.dev/filters/filters-2023.txt'
  77. ],
  78. false
  79. ],
  80. // uBlock Origin Badware Risk List
  81. [
  82. 'https://ublockorigin.github.io/uAssets/filters/badware.txt',
  83. [
  84. 'https://ublockorigin.github.io/uAssetsCDN/filters/badware.txt',
  85. 'https://ublockorigin.pages.dev/filters/badware.txt'
  86. ],
  87. false
  88. ],
  89. // uBlock Origin Privacy List
  90. [
  91. 'https://ublockorigin.github.io/uAssets/filters/privacy.txt',
  92. [
  93. 'https://ublockorigin.github.io/uAssetsCDN/filters/privacy.txt',
  94. 'https://ublockorigin.pages.dev/filters/privacy.txt'
  95. ],
  96. false
  97. ],
  98. // uBlock Origin Resource Abuse
  99. [
  100. 'https://ublockorigin.github.io/uAssets/filters/resource-abuse.txt',
  101. [
  102. 'https://ublockorigin.github.io/uAssetsCDN/filters/resource-abuse.txt',
  103. 'https://ublockorigin.pages.dev/filters/resource-abuse.txt'
  104. ],
  105. false
  106. ],
  107. // uBlock Origin Unbreak
  108. [
  109. 'https://ublockorigin.github.io/uAssets/filters/unbreak.txt',
  110. [
  111. 'https://ublockorigin.github.io/uAssetsCDN/filters/unbreak.txt',
  112. 'https://ublockorigin.pages.dev/filters/unbreak.txt'
  113. ],
  114. false
  115. ],
  116. // AdGuard Base Filter
  117. 'https://filters.adtidy.org/extension/ublock/filters/2_without_easylist.txt',
  118. // AdGuard Mobile AD
  119. 'https://filters.adtidy.org/extension/ublock/filters/11_optimized.txt',
  120. // AdGuard Tracking Protection
  121. 'https://filters.adtidy.org/extension/ublock/filters/3_optimized.txt',
  122. // AdGuard Japanese filter
  123. 'https://filters.adtidy.org/extension/ublock/filters/7_optimized.txt',
  124. // AdGuard Chinese filter (EasyList China + AdGuard Chinese filter)
  125. 'https://filters.adtidy.org/extension/ublock/filters/224_optimized.txt',
  126. // AdGuard Annoyances filter
  127. 'https://filters.adtidy.org/android/filters/14_optimized.txt',
  128. // EasyList Germany filter
  129. [
  130. 'https://easylist.to/easylistgermany/easylistgermany.txt',
  131. [
  132. 'https://easylist-downloads.adblockplus.org/easylistgermany.txt'
  133. ],
  134. false
  135. ],
  136. // Curben's UrlHaus Malicious URL Blocklist
  137. [
  138. 'https://curbengh.github.io/urlhaus-filter/urlhaus-filter-agh-online.txt',
  139. [
  140. 'https://urlhaus-filter.pages.dev/urlhaus-filter-agh-online.txt',
  141. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  142. // 'https://malware-filter.gitlab.io/urlhaus-filter/urlhaus-filter-agh-online.txt'
  143. ],
  144. false
  145. ],
  146. // Curben's Phishing URL Blocklist
  147. [
  148. 'https://curbengh.github.io/phishing-filter/phishing-filter-agh.txt',
  149. [
  150. 'https://phishing-filter.pages.dev/phishing-filter-agh.txt',
  151. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  152. // 'https://malware-filter.gitlab.io/malware-filter/phishing-filter-agh.txt'
  153. ],
  154. false
  155. ],
  156. // Curben's PUP Domains Blocklist
  157. [
  158. 'https://curbengh.github.io/pup-filter/pup-filter-agh.txt',
  159. [
  160. 'https://pup-filter.pages.dev/pup-filter-agh.txt',
  161. // Prefer mirror, since malware-filter.gitlab.io has not been updated for a while
  162. // 'https://malware-filter.gitlab.io/malware-filter/pup-filter-agh.txt'
  163. ],
  164. false
  165. ],
  166. // GameConsoleAdblockList
  167. 'https://raw.githubusercontent.com/DandelionSprout/adfilt/master/GameConsoleAdblockList.txt',
  168. // PiHoleBlocklist
  169. 'https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV-AGH.txt',
  170. // Spam404
  171. 'https://raw.githubusercontent.com/Spam404/lists/master/adblock-list.txt',
  172. // BarbBlock
  173. 'https://paulgb.github.io/BarbBlock/blacklists/ublock-origin.txt',
  174. // Brave First Party & First Party CNAME
  175. 'https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty.txt',
  176. 'https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty-cname.txt',
  177. 'https://raw.githubusercontent.com/brave/adblock-lists/master/coin-miners.txt'
  178. ];
  179. const PREDEFINED_WHITELIST = [
  180. 'localhost',
  181. 'broadcasthost',
  182. 'ip6-loopback',
  183. 'ip6-localnet',
  184. 'ip6-mcastprefix',
  185. 'ip6-allnodes',
  186. 'ip6-allrouters',
  187. 'ip6-allhosts',
  188. 'mcastprefix',
  189. 'skk.moe',
  190. 'analytics.google.com',
  191. 'msa.cdn.mediaset.net', // Added manually using DOMAIN-KEYWORDS
  192. 'cloud.answerhub.com',
  193. 'ae01.alicdn.com',
  194. 'whoami.akamai.net',
  195. 'whoami.ds.akahelp.net',
  196. 'pxlk9.net.', // This one is malformed from EasyList, which I will manually add instead
  197. 'instant.page', // No, it doesn't violate anyone's privacy. I will whitelist it
  198. 'piwik.pro',
  199. 'mixpanel.com',
  200. 'cdn.mxpnl.com',
  201. 'heapanalytics.com',
  202. 'segment.com',
  203. 'segmentify.com',
  204. 't.co', // pgl yoyo add t.co to the blacklist
  205. 'survicate.com', // AdGuardDNSFilter
  206. 'perfops.io', // AdGuardDNSFilter
  207. 'd2axgrpnciinw7.cloudfront.net', // ADGuardDNSFilter
  208. 'tb-lb.sb-cd.com', // AdGuard
  209. 'storage.yandexcloud.net', // phishing list
  210. 'login.microsoftonline.com', // phishing list
  211. 'api.xiaomi.com', // https://github.com/jerryn70/GoodbyeAds/issues/281
  212. 'api.io.mi.com', // https://github.com/jerryn70/GoodbyeAds/issues/281
  213. 'cdn.userreport.com', // https://github.com/AdguardTeam/AdGuardSDNSFilter/issues/1158
  214. 'ip-api.com',
  215. 'fastly-analytics.com',
  216. 'syd1.digitaloceanspaces.com',
  217. 's3.nl-ams.scw.cloud',
  218. 'geolocation-db.com'
  219. ];
  220. const PREDEFINED_ENFORCED_BACKLIST = [
  221. 'telemetry.mozilla.org'
  222. ];
  223. module.exports.HOSTS = HOSTS;
  224. module.exports.ADGUARD_FILTERS = ADGUARD_FILTERS;
  225. module.exports.PREDEFINED_WHITELIST = PREDEFINED_WHITELIST;
  226. module.exports.PREDEFINED_ENFORCED_BACKLIST = PREDEFINED_ENFORCED_BACKLIST;