Google Images Blocklist

Blocks domains from showing up on google images search results

  1. // ==UserScript==
  2. // @name Google Images Blocklist
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Blocks domains from showing up on google images search results
  6. // @author Unnoen
  7. // @match https://www.google.ac/search?*tbm=isch*
  8. // @match https://www.google.ad/search?*tbm=isch*
  9. // @match https://www.google.ae/search?*tbm=isch*
  10. // @match https://www.google.com.af/search?*tbm=isch*
  11. // @match https://www.google.com.ag/search?*tbm=isch*
  12. // @match https://www.google.com.ai/search?*tbm=isch*
  13. // @match https://www.google.al/search?*tbm=isch*
  14. // @match https://www.google.am/search?*tbm=isch*
  15. // @match https://www.google.co.ao/search?*tbm=isch*
  16. // @match https://www.google.com.ar/search?*tbm=isch*
  17. // @match https://www.google.as/search?*tbm=isch*
  18. // @match https://www.google.at/search?*tbm=isch*
  19. // @match https://www.google.com.au/search?*tbm=isch*
  20. // @match https://www.google.az/search?*tbm=isch*
  21. // @match https://www.google.ba/search?*tbm=isch*
  22. // @match https://www.google.com.bd/search?*tbm=isch*
  23. // @match https://www.google.be/search?*tbm=isch*
  24. // @match https://www.google.bf/search?*tbm=isch*
  25. // @match https://www.google.bg/search?*tbm=isch*
  26. // @match https://www.google.com.bh/search?*tbm=isch*
  27. // @match https://www.google.bi/search?*tbm=isch*
  28. // @match https://www.google.bj/search?*tbm=isch*
  29. // @match https://www.google.com.bn/search?*tbm=isch*
  30. // @match https://www.google.com.bo/search?*tbm=isch*
  31. // @match https://www.google.com.br/search?*tbm=isch*
  32. // @match https://www.google.bs/search?*tbm=isch*
  33. // @match https://www.google.bt/search?*tbm=isch*
  34. // @match https://www.google.co.bw/search?*tbm=isch*
  35. // @match https://www.google.by/search?*tbm=isch*
  36. // @match https://www.google.com.bz/search?*tbm=isch*
  37. // @match https://www.google.ca/search?*tbm=isch*
  38. // @match https://www.google.com.kh/search?*tbm=isch*
  39. // @match https://www.google.cc/search?*tbm=isch*
  40. // @match https://www.google.cd/search?*tbm=isch*
  41. // @match https://www.google.cf/search?*tbm=isch*
  42. // @match https://www.google.cat/search?*tbm=isch*
  43. // @match https://www.google.cg/search?*tbm=isch*
  44. // @match https://www.google.ch/search?*tbm=isch*
  45. // @match https://www.google.ci/search?*tbm=isch*
  46. // @match https://www.google.co.ck/search?*tbm=isch*
  47. // @match https://www.google.cl/search?*tbm=isch*
  48. // @match https://www.google.cm/search?*tbm=isch*
  49. // @match https://www.google.cn/search?*tbm=isch*
  50. // @match https://www.google.com.co/search?*tbm=isch*
  51. // @match https://www.google.co.cr/search?*tbm=isch*
  52. // @match https://www.google.com.cu/search?*tbm=isch*
  53. // @match https://www.google.cv/search?*tbm=isch*
  54. // @match https://www.google.com.cy/search?*tbm=isch*
  55. // @match https://www.google.cz/search?*tbm=isch*
  56. // @match https://www.google.de/search?*tbm=isch*
  57. // @match https://www.google.dj/search?*tbm=isch*
  58. // @match https://www.google.dk/search?*tbm=isch*
  59. // @match https://www.google.dm/search?*tbm=isch*
  60. // @match https://www.google.com.do/search?*tbm=isch*
  61. // @match https://www.google.dz/search?*tbm=isch*
  62. // @match https://www.google.com.ec/search?*tbm=isch*
  63. // @match https://www.google.ee/search?*tbm=isch*
  64. // @match https://www.google.com.eg/search?*tbm=isch*
  65. // @match https://www.google.es/search?*tbm=isch*
  66. // @match https://www.google.com.et/search?*tbm=isch*
  67. // @match https://www.google.fi/search?*tbm=isch*
  68. // @match https://www.google.com.fj/search?*tbm=isch*
  69. // @match https://www.google.fm/search?*tbm=isch*
  70. // @match https://www.google.fr/search?*tbm=isch*
  71. // @match https://www.google.ga/search?*tbm=isch*
  72. // @match https://www.google.ge/search?*tbm=isch*
  73. // @match https://www.google.gf/search?*tbm=isch*
  74. // @match https://www.google.gg/search?*tbm=isch*
  75. // @match https://www.google.com.gh/search?*tbm=isch*
  76. // @match https://www.google.com.gi/search?*tbm=isch*
  77. // @match https://www.google.gl/search?*tbm=isch*
  78. // @match https://www.google.gm/search?*tbm=isch*
  79. // @match https://www.google.gp/search?*tbm=isch*
  80. // @match https://www.google.gr/search?*tbm=isch*
  81. // @match https://www.google.com.gt/search?*tbm=isch*
  82. // @match https://www.google.gy/search?*tbm=isch*
  83. // @match https://www.google.com.hk/search?*tbm=isch*
  84. // @match https://www.google.hn/search?*tbm=isch*
  85. // @match https://www.google.hr/search?*tbm=isch*
  86. // @match https://www.google.ht/search?*tbm=isch*
  87. // @match https://www.google.hu/search?*tbm=isch*
  88. // @match https://www.google.co.id/search?*tbm=isch*
  89. // @match https://www.google.iq/search?*tbm=isch*
  90. // @match https://www.google.ie/search?*tbm=isch*
  91. // @match https://www.google.co.il/search?*tbm=isch*
  92. // @match https://www.google.im/search?*tbm=isch*
  93. // @match https://www.google.co.in/search?*tbm=isch*
  94. // @match https://www.google.io/search?*tbm=isch*
  95. // @match https://www.google.is/search?*tbm=isch*
  96. // @match https://www.google.it/search?*tbm=isch*
  97. // @match https://www.google.je/search?*tbm=isch*
  98. // @match https://www.google.com.jm/search?*tbm=isch*
  99. // @match https://www.google.jo/search?*tbm=isch*
  100. // @match https://www.google.co.jp/search?*tbm=isch*
  101. // @match https://www.google.co.ke/search?*tbm=isch*
  102. // @match https://www.google.ki/search?*tbm=isch*
  103. // @match https://www.google.kg/search?*tbm=isch*
  104. // @match https://www.google.co.kr/search?*tbm=isch*
  105. // @match https://www.google.com.kw/search?*tbm=isch*
  106. // @match https://www.google.kz/search?*tbm=isch*
  107. // @match https://www.google.la/search?*tbm=isch*
  108. // @match https://www.google.com.lb/search?*tbm=isch*
  109. // @match https://www.google.com.lc/search?*tbm=isch*
  110. // @match https://www.google.li/search?*tbm=isch*
  111. // @match https://www.google.lk/search?*tbm=isch*
  112. // @match https://www.google.co.ls/search?*tbm=isch*
  113. // @match https://www.google.lt/search?*tbm=isch*
  114. // @match https://www.google.lu/search?*tbm=isch*
  115. // @match https://www.google.lv/search?*tbm=isch*
  116. // @match https://www.google.com.ly/search?*tbm=isch*
  117. // @match https://www.google.co.ma/search?*tbm=isch*
  118. // @match https://www.google.md/search?*tbm=isch*
  119. // @match https://www.google.me/search?*tbm=isch*
  120. // @match https://www.google.mg/search?*tbm=isch*
  121. // @match https://www.google.mk/search?*tbm=isch*
  122. // @match https://www.google.ml/search?*tbm=isch*
  123. // @match https://www.google.com.mm/search?*tbm=isch*
  124. // @match https://www.google.mn/search?*tbm=isch*
  125. // @match https://www.google.ms/search?*tbm=isch*
  126. // @match https://www.google.com.mt/search?*tbm=isch*
  127. // @match https://www.google.mu/search?*tbm=isch*
  128. // @match https://www.google.mv/search?*tbm=isch*
  129. // @match https://www.google.mw/search?*tbm=isch*
  130. // @match https://www.google.com.mx/search?*tbm=isch*
  131. // @match https://www.google.com.my/search?*tbm=isch*
  132. // @match https://www.google.co.mz/search?*tbm=isch*
  133. // @match https://www.google.com.na/search?*tbm=isch*
  134. // @match https://www.google.ne/search?*tbm=isch*
  135. // @match https://www.google.com.nf/search?*tbm=isch*
  136. // @match https://www.google.com.ng/search?*tbm=isch*
  137. // @match https://www.google.com.ni/search?*tbm=isch*
  138. // @match https://www.google.nl/search?*tbm=isch*
  139. // @match https://www.google.no/search?*tbm=isch*
  140. // @match https://www.google.com.np/search?*tbm=isch*
  141. // @match https://www.google.nr/search?*tbm=isch*
  142. // @match https://www.google.nu/search?*tbm=isch*
  143. // @match https://www.google.co.nz/search?*tbm=isch*
  144. // @match https://www.google.com.om/search?*tbm=isch*
  145. // @match https://www.google.com.pk/search?*tbm=isch*
  146. // @match https://www.google.com.pa/search?*tbm=isch*
  147. // @match https://www.google.com.pe/search?*tbm=isch*
  148. // @match https://www.google.com.ph/search?*tbm=isch*
  149. // @match https://www.google.pl/search?*tbm=isch*
  150. // @match https://www.google.com.pg/search?*tbm=isch*
  151. // @match https://www.google.pn/search?*tbm=isch*
  152. // @match https://www.google.com.pr/search?*tbm=isch*
  153. // @match https://www.google.ps/search?*tbm=isch*
  154. // @match https://www.google.pt/search?*tbm=isch*
  155. // @match https://www.google.com.py/search?*tbm=isch*
  156. // @match https://www.google.com.qa/search?*tbm=isch*
  157. // @match https://www.google.ro/search?*tbm=isch*
  158. // @match https://www.google.rs/search?*tbm=isch*
  159. // @match https://www.google.ru/search?*tbm=isch*
  160. // @match https://www.google.rw/search?*tbm=isch*
  161. // @match https://www.google.com.sa/search?*tbm=isch*
  162. // @match https://www.google.com.sb/search?*tbm=isch*
  163. // @match https://www.google.sc/search?*tbm=isch*
  164. // @match https://www.google.se/search?*tbm=isch*
  165. // @match https://www.google.com.sg/search?*tbm=isch*
  166. // @match https://www.google.sh/search?*tbm=isch*
  167. // @match https://www.google.si/search?*tbm=isch*
  168. // @match https://www.google.sk/search?*tbm=isch*
  169. // @match https://www.google.com.sl/search?*tbm=isch*
  170. // @match https://www.google.sn/search?*tbm=isch*
  171. // @match https://www.google.sm/search?*tbm=isch*
  172. // @match https://www.google.so/search?*tbm=isch*
  173. // @match https://www.google.st/search?*tbm=isch*
  174. // @match https://www.google.sr/search?*tbm=isch*
  175. // @match https://www.google.com.sv/search?*tbm=isch*
  176. // @match https://www.google.td/search?*tbm=isch*
  177. // @match https://www.google.tg/search?*tbm=isch*
  178. // @match https://www.google.co.th/search?*tbm=isch*
  179. // @match https://www.google.com.tj/search?*tbm=isch*
  180. // @match https://www.google.tk/search?*tbm=isch*
  181. // @match https://www.google.tl/search?*tbm=isch*
  182. // @match https://www.google.tm/search?*tbm=isch*
  183. // @match https://www.google.to/search?*tbm=isch*
  184. // @match https://www.google.tn/search?*tbm=isch*
  185. // @match https://www.google.com.tr/search?*tbm=isch*
  186. // @match https://www.google.tt/search?*tbm=isch*
  187. // @match https://www.google.com.tw/search?*tbm=isch*
  188. // @match https://www.google.co.tz/search?*tbm=isch*
  189. // @match https://www.google.com.ua/search?*tbm=isch*
  190. // @match https://www.google.co.ug/search?*tbm=isch*
  191. // @match https://www.google.co.uk/search?*tbm=isch*
  192. // @match https://www.google.com/search?*tbm=isch*
  193. // @match https://www.google.com.uy/search?*tbm=isch*
  194. // @match https://www.google.co.uz/search?*tbm=isch*
  195. // @match https://www.google.com.vc/search?*tbm=isch*
  196. // @match https://www.google.co.ve/search?*tbm=isch*
  197. // @match https://www.google.vg/search?*tbm=isch*
  198. // @match https://www.google.co.vi/search?*tbm=isch*
  199. // @match https://www.google.com.vn/search?*tbm=isch*
  200. // @match https://www.google.vu/search?*tbm=isch*
  201. // @match https://www.google.ws/search?*tbm=isch*
  202. // @match https://www.google.co.za/search?*tbm=isch*
  203. // @match https://www.google.co.zm/search?*tbm=isch*
  204. // @match https://www.google.co.zw/search?*tbm=isch*
  205. // @grant none
  206. // ==/UserScript==
  207.  
  208. /* Enter the domains you want to block into the following list, enclosed in parentheses and separated by commas
  209. THIS BLOCKS ALL SUBDOMAINS ON THAT DOMAIN TOO (entering "example.com" blocks images on "img.example.com" too)
  210. pinterest domains are:
  211. "pinterest.com", "pinterest.co.uk"
  212. */
  213.  
  214. var blocked_domains = [
  215. "example1.com", "example2.com"
  216. ];
  217.  
  218. (function() {
  219. setInterval(function(){
  220. var imgWrapper = document.getElementById("rg").children[0];
  221. var maxSize = imgWrapper.children.length;
  222. for(var i = 0; i < maxSize;){
  223. if(typeof imgWrapper.children[i].getElementsByClassName("rg_meta notranslate")[0] !== "undefined"){
  224. var img_domain = JSON.parse(imgWrapper.children[i].getElementsByClassName("rg_meta notranslate")[0].innerText).isu;
  225. while(img_domain.indexOf(".") != img_domain.lastIndexOf(".")){
  226. img_domain = img_domain.substring(img_domain.indexOf(".") + 1);
  227. }
  228. if(blocked_domains.includes(img_domain)){
  229. maxSize--;
  230. imgWrapper.removeChild(imgWrapper.children[i]);
  231. }else{
  232. i++;
  233. }
  234. }else{
  235. i++;
  236. }
  237. }
  238. }, 2000);
  239. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址