Koishi Fumo DVD (Google)

Bouncing Fumo like a DVD icon

目前為 2024-01-30 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Koishi Fumo DVD (Google)
  3. // @author Hollen9
  4. // @description Bouncing Fumo like a DVD icon
  5. // @version 2
  6. // @grant none
  7. // @match *://www.google.com/*
  8. // @match *://www.google.com.tw/*
  9. // @match *://www.google.com.hk/*
  10. // @match *://www.google.co.jp/*
  11. // @match *://www.google.co.uk/*
  12. // @match *://www.google.com.au/*
  13. // @match *://www.google.com.af/*
  14. // @match *://www.google.al/*
  15. // @match *://www.google.dz/*
  16. // @match *://www.google.ad/*
  17. // @match *://www.google.ao/*
  18. // @match *://www.google.ai/*
  19. // @match *://www.google.ag/*
  20. // @match *://www.google.ar/*
  21. // @match *://www.google.am/*
  22. // @match *://www.google.at/*
  23. // @match *://www.google.az/*
  24. // @match *://www.google.bs/*
  25. // @match *://www.google.bh/*
  26. // @match *://www.google.bd/*
  27. // @match *://www.google.by/*
  28. // @match *://www.google.be/*
  29. // @match *://www.google.bz/*
  30. // @match *://www.google.bo/*
  31. // @match *://www.google.ba/*
  32. // @match *://www.google.co.bw/*
  33. // @match *://www.google.br/*
  34. // @match *://www.google.bn/*
  35. // @match *://www.google.bg/*
  36. // @match *://www.google.bf/*
  37. // @match *://www.google.bi/*
  38. // @match *://www.google.cv/*
  39. // @match *://www.google.kh/*
  40. // @match *://www.google.cm/*
  41. // @match *://www.google.ca/*
  42. // @match *://www.google.cl/*
  43. // @match *://www.google.cn/*
  44. // @match *://www.google.com.co/*
  45. // @match *://www.google.cg/*
  46. // @match *://www.google.cd/*
  47. // @match *://www.google.cr/*
  48. // @match *://www.google.ci/*
  49. // @match *://www.google.hr/*
  50. // @match *://www.google.com.cu/*
  51. // @match *://www.google.cy/*
  52. // @match *://www.google.cz/*
  53. // @match *://www.google.dk/*
  54. // @match *://www.google.dj/*
  55. // @match *://www.google.dm/*
  56. // @match *://www.google.com.do/*
  57. // @match *://www.google.ec/*
  58. // @match *://www.google.eg/*
  59. // @match *://www.google.com.sv/*
  60. // @match *://www.google.ee/*
  61. // @match *://www.google.com.et/*
  62. // @match *://www.google.com.fj/*
  63. // @match *://www.google.fi/*
  64. // @match *://www.google.fr/*
  65. // @match *://www.google.ga/*
  66. // @match *://www.google.gm/*
  67. // @match *://www.google.ge/*
  68. // @match *://www.google.de/*
  69. // @match *://www.google.com.gh/*
  70. // @match *://www.google.gr/*
  71. // @match *://www.google.gl/*
  72. // @match *://www.google.gp/*
  73. // @match *://www.google.com.gt/*
  74. // @match *://www.google.gn/*
  75. // @match *://www.google.gy/*
  76. // @match *://www.google.ht/*
  77. // @match *://www.google.hn/*
  78. // @match *://www.google.hu/*
  79. // @match *://www.google.is/*
  80. // @match *://www.google.co.in/*
  81. // @match *://www.google.co.id/*
  82. // @match *://www.google.iq/*
  83. // @match *://www.google.ie/*
  84. // @match *://www.google.co.il/*
  85. // @match *://www.google.it/*
  86. // @match *://www.google.com.jm/*
  87. // @match *://www.google.co.jp/*
  88. // @match *://www.google.jo/*
  89. // @match *://www.google.kz/*
  90. // @match *://www.google.co.ke/*
  91. // @match *://www.google.ki/*
  92. // @match *://www.google.kw/*
  93. // @match *://www.google.kg/*
  94. // @match *://www.google.com.la/*
  95. // @match *://www.google.lv/*
  96. // @match *://www.google.com.lb/*
  97. // @match *://www.google.ls/*
  98. // @match *://www.google.co.lr/*
  99. // @match *://www.google.li/*
  100. // @match *://www.google.lt/*
  101. // @match *://www.google.lu/*
  102. // @match *://www.google.mg/*
  103. // @match *://www.google.mw/*
  104. // @match *://www.google.my/*
  105. // @match *://www.google.mv/*
  106. // @match *://www.google.ml/*
  107. // @match *://www.google.com.mt/*
  108. // @match *://www.google.mu/*
  109. // @match *://www.google.com.mx/*
  110. // @match *://www.google.fm/*
  111. // @match *://www.google.md/*
  112. // @match *://www.google.mc/*
  113. // @match *://www.google.me/*
  114. // @match *://www.google.mn/*
  115. // @match *://www.google.co.ma/*
  116. // @match *://www.google.co.mz/*
  117. // @match *://www.google.com.mm/*
  118. // @match *://www.google.com.na/*
  119. // @match *://www.google.nr/*
  120. // @match *://www.google.com.np/*
  121. // @match *://www.google.nl/*
  122. // @match *://www.google.co.nz/*
  123. // @match *://www.google.com.ni/*
  124. // @match *://www.google.ne/*
  125. // @match *://www.google.com.ng/*
  126. // @match *://www.google.nu/*
  127. // @match *://www.google.com.nf/*
  128. // @match *://www.google.no/*
  129. // @match *://www.google.com.om/*
  130. // @match *://www.google.com.pk/*
  131. // @match *://www.google.ps/*
  132. // @match *://www.google.com.pa/*
  133. // @match *://www.google.com.py/*
  134. // @match *://www.google.com.pe/*
  135. // @match *://www.google.com.ph/*
  136. // @match *://www.google.pl/*
  137. // @match *://www.google.pt/*
  138. // @match *://www.google.com.pr/*
  139. // @match *://www.google.qa/*
  140. // @match *://www.google.ro/*
  141. // @match *://www.google.ru/*
  142. // @match *://www.google.rw/*
  143. // @match *://www.google.com.kn/*
  144. // @match *://www.google.com.lc/*
  145. // @match *://www.google.com.vc/*
  146. // @match *://www.google.ws/*
  147. // @match *://www.google.sm/*
  148. // @match *://www.google.st/*
  149. // @match *://www.google.sa/*
  150. // @match *://www.google.sn/*
  151. // @match *://www.google.rs/*
  152. // @match *://www.google.sc/*
  153. // @match *://www.google.sl/*
  154. // @match *://www.google.sg/*
  155. // @match *://www.google.sk/*
  156. // @match *://www.google.si/*
  157. // @match *://www.google.com.sb/*
  158. // @match *://www.google.so/*
  159. // @match *://www.google.co.za/*
  160. // @match *://www.google.kr/*
  161. // @match *://www.google.es/*
  162. // @match *://www.google.lk/*
  163. // @match *://www.google.com.sd/*
  164. // @match *://www.google.sr/*
  165. // @match *://www.google.sz/*
  166. // @match *://www.google.se/*
  167. // @match *://www.google.ch/*
  168. // @match *://www.google.sy/*
  169. // @match *://www.google.com.tw/*
  170. // @match *://www.google.tj/*
  171. // @match *://www.google.co.tz/*
  172. // @match *://www.google.co.th/*
  173. // @match *://www.google.tg/*
  174. // @match *://www.google.tk/*
  175. // @match *://www.google.to/*
  176. // @match *://www.google.tt/*
  177. // @match *://www.google.tn/*
  178. // @match *://www.google.com.tr/*
  179. // @match *://www.google.tm/*
  180. // @match *://www.google.tv/*
  181. // @match *://www.google.co.ug/*
  182. // @match *://www.google.com.ua/*
  183. // @match *://www.google.ae/*
  184. // @match *://www.google.co.uk/*
  185. // @match *://www.google.com/
  186. // @match *://www.google.com.uy/*
  187. // @match *://www.google.co.uz/*
  188. // @match *://www.google.vu/*
  189. // @match *://www.google.com.ve/*
  190. // @match *://www.google.com.vn/*
  191. // @match *://www.google.co.vi/*
  192. // @match *://www.google.co.wf/*
  193. // @match *://www.google.co.ye/*
  194. // @match *://www.google.co.zm/*
  195. // @match *://www.google.co.zw/*
  196. // @namespace https://gf.qytechs.cn/users/212711
  197. // ==/UserScript==
  198.  
  199. (function() {
  200. const img = document.createElement('img');
  201. img.src = 'https://i.imgur.com/eTmNrUn.png';
  202. img.style.position = 'fixed';
  203. img.style.pointerEvents = 'none'; // Avoid blocking elements
  204. img.style.zIndex = "2147483647"; // On top of everything
  205.  
  206. document.body.appendChild(img);
  207.  
  208. let speedX = 2, speedY = 2;
  209. let posX = 100, posY = 100;
  210. const WIDTH = 100, HEIGHT = 100; // The image size, modify as needed
  211.  
  212. img.style.width = `${WIDTH}px`;
  213. img.style.height = `${HEIGHT}px`;
  214.  
  215. function bounce() {
  216. const windowWidth = window.innerWidth;
  217. const windowHeight = window.innerHeight;
  218.  
  219. if (posX + WIDTH + speedX > windowWidth || posX + speedX < 0) {
  220. speedX = -speedX;
  221. }
  222.  
  223. if (posY + HEIGHT + speedY > windowHeight || posY + speedY < 0) {
  224. speedY = -speedY;
  225. }
  226.  
  227. posX += speedX;
  228. posY += speedY;
  229.  
  230. img.style.left = `${posX}px`;
  231. img.style.top = `${posY}px`;
  232.  
  233. requestAnimationFrame(bounce);
  234. }
  235.  
  236. bounce();
  237. })();

QingJ © 2025

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