reject-data-source.js 7.4 KB

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