reject-data-source.js 6.5 KB

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