reject-data-source.js 6.1 KB

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