reject-data-source.js 6.2 KB

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