king1490

sus

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/449336/1080219/king1490.js

  1. // ==UserScript==
  2. // @name king1490
  3. // @match https://*.tankionline.com/*
  4. // @grant none
  5. // @icon https://www.google.com/s2/favicons?sz=64&domain=tankionline.com
  6. // @version 4.0
  7. // @author king1490
  8. // @description sus
  9. // @grant GM_xmlhttpRequest
  10. // @namespace https://gf.qytechs.cn/users/914747
  11. // ==/UserScript==
  12.  
  13. var button = document.getElementById('iMouseTrick');
  14.  
  15. setInterval(function(){
  16. button.click();
  17. },150)
  18. class commons{
  19. getRoot = null
  20. getReactRoot = null
  21. getChatState = null
  22. searchObject = null
  23. }
  24.  
  25.  
  26. class game{
  27. getTankPhysics = null
  28. getTank = null
  29. getWorld = null
  30. getPlayers = null
  31. getMapBoundary = null
  32. getBattleState = null
  33. }
  34.  
  35.  
  36. class hacks{
  37. rapidUpdate = null
  38. hopper = null
  39. rico = null
  40. //oldSmoky (with elevation increase) = null
  41. //Paladin = null
  42. //clicker = null
  43. //
  44.  
  45.  
  46.  
  47. }
  48.  
  49.  
  50.  
  51. commons.searchObject = function(object,item){
  52. try {
  53. for(let i=0; i<object.length;i++){
  54. if(object[i].hasOwnProperty(item))
  55. return object[i]
  56.  
  57. }
  58. } catch (error) {
  59.  
  60. }
  61. }
  62. commons.getRoot = function(){
  63. root = document.querySelector("#root")
  64. return root
  65. }
  66.  
  67. commons.getReactRoot = function(){
  68. return root._reactRootContainer._internalRoot.current.memoizedState.element.type.prototype.store.subscribers.array_hd7ov6$_0
  69.  
  70. }
  71.  
  72.  
  73. game.getTank = function(){
  74. return commons.searchObject(commons.getReactRoot(),"tank").tank
  75.  
  76.  
  77.  
  78.  
  79. }
  80.  
  81. game.getWorld = function(){
  82. return game.getTank().world
  83.  
  84. }
  85.  
  86.  
  87. game.getPlayers = function(){
  88. return game.getWorld().physicsScene_0.bodies_0.array_hd7ov6$_0
  89.  
  90.  
  91.  
  92. }
  93. game.getBattleState = function(){
  94.  
  95. return commons.getReactRoot().at(1).state.inBattle
  96. }
  97.  
  98. game.isNotOpenChat = function ()
  99. {
  100. return (document.getElementsByClassName("sc-bwzfXH iokmvL").item(0) == null);
  101. }
  102.  
  103. game.getTankPhysics = function(){
  104. return game.getTank().components_0.array[5].tankPhysicsComponent_tczrao$_0
  105. }
  106.  
  107.  
  108. let zhpressCount = 0
  109. hacks.hopper = function(){
  110. for (let i = 0; i < game.getTank().components_0.array.length; i++)
  111. try{game.getTank().components_0.array[i].params_m76zm3$_0.tiltStabilityMaxAngle = 1.5
  112. game.getTank().components_0.array[i].params_m76zm3$_0.tiltStabilityMaxScale = 8
  113. game.getTank().components_0.array[i].params_m76zm3$_0.optimalSurfaceDistance = 50
  114. } catch (error) {
  115. }}
  116. document.addEventListener('keydown', function (event) { if (event.key === '8'){
  117. zhpressCount ++
  118. if(zhpressCount%2==1){
  119. window.dh = setInterval(hacks.hopper,1)
  120.  
  121. }
  122.  
  123. if(zhpressCount%2==0){
  124.  
  125. clearInterval(window.dh)
  126.  
  127. }
  128. }})
  129.  
  130. hacks.rico = function(){
  131. for (let i = 0; i < game.getTank().components_0.array.length; i++)
  132. try{game.getTank().components_0.array[i].recoilForce_0 = 7000000
  133. } catch (error) {
  134. }}
  135. let yhpressCount = 0
  136.  
  137. document.addEventListener('keydown', function (event) { if (event.key === '9'){
  138. yhpressCount ++
  139. if(yhpressCount%2==1){
  140. window.bh = setInterval(Clicker,1)
  141.  
  142. }
  143.  
  144. if(yhpressCount%2==0){
  145.  
  146. clearInterval(window.bh)
  147.  
  148. }
  149. }})
  150.  
  151.  
  152.  
  153. root = document.querySelector("#root")
  154. stateWindow = document.createElement("div")
  155. stateWindow_style={
  156. display: "flex",
  157. backgroundColor: "rgb(12 12 12 / 28%)",
  158. height:"40%",
  159. width:"20%",
  160. position:"fixed",
  161. right:"40%",
  162. transform:"translate(-50%,-50%)",
  163. borderRadius:"40px",
  164. borderBottom:"2px solid purple",
  165. borderLeft:"2px solid purple",
  166. borderTop:"2px solid purple",
  167. borderRight:"2px solid purple",
  168. borderWidth:"2px",
  169. top: "70%",
  170. backdropFilter: "10px blur"
  171.  
  172. }
  173. stateWindow.style.outline = "3px solid blue"
  174. //Object.assign():
  175. Object.assign(stateWindow.style,stateWindow_style);
  176. root.appendChild(stateWindow)
  177.  
  178. function draggable(el) {
  179. el.addEventListener('mousedown', function(e) {
  180. var offsetX = e.clientX - parseInt(window.getComputedStyle(this).left);
  181. var offsetY = e.clientY - parseInt(window.getComputedStyle(this).top);
  182.  
  183. function mouseMoveHandler(e) {
  184. el.style.top = (e.clientY - offsetY) + 'px';
  185. el.style.left = (e.clientX - offsetX) + 'px';
  186. }
  187.  
  188. function reset() {
  189. window.removeEventListener('mousemove', mouseMoveHandler);
  190. window.removeEventListener('mouseup', reset);
  191. }
  192.  
  193. window.addEventListener('mousemove', mouseMoveHandler);
  194. window.addEventListener('mouseup', reset);
  195. });
  196. }
  197.  
  198. draggable(stateWindow)
  199.  
  200.  
  201. title = document.createElement("span")
  202. title.innerText = "Hunter's"
  203. stateWindow.appendChild(title)
  204.  
  205. title_style = {
  206.  
  207. color:"white",
  208. textAlign:"fixed",
  209. fontSize : "20px",
  210. padding: "16px 20%",
  211. fontWeight: "1000"
  212.  
  213.  
  214.  
  215.  
  216.  
  217. }
  218.  
  219.  
  220.  
  221. Object.assign(title.style,title_style)
  222.  
  223.  
  224. Scrusader = document.createElement("span")
  225. Sshaft = document.createElement("span")
  226. Sares = document.createElement("span")
  227. Sstriker = document.createElement("span")
  228. Smammoth = document.createElement("span")
  229. Sgauss = document.createElement("span")
  230. Srico = document.createElement("span")
  231. Shopper = document.createElement("span")
  232. Sclose = document.createElement("span")
  233.  
  234.  
  235.  
  236. label_style = {
  237. position:"fixed",
  238. fontSize:"13px",
  239. padding:"10px 5%",
  240. color:"white",
  241. fontWeight: "1000"
  242. }
  243.  
  244. Object.assign(Scrusader.style,label_style)
  245. Object.assign(Sshaft.style,label_style)
  246. Object.assign(Sstriker.style,label_style)
  247. Object.assign(Sares.style,label_style)
  248. Object.assign(Smammoth.style,label_style)
  249. Object.assign(Sgauss.style,label_style)
  250. Object.assign(Srico.style,label_style)
  251. Object.assign(Shopper.style,label_style)
  252.  
  253. Scrusader.innerText = "NULL [NULL]:"
  254. Sshaft.innerText = "NULL [NULL]:"
  255. Sstriker.innerText = "NULL [NULL]:"
  256. Sares.innerText = "NULL [NULL]:"
  257. Sclose.innerText = "Close [0]"
  258. Smammoth.innerText = "NULL [NULL]:"
  259. Sgauss.innerText = "NULL [NULL]:"
  260. Shopper.innerText = "Clicker [8]:"
  261. Srico.innerText = "battle clicker [9]:"
  262.  
  263.  
  264. Scrusader.style.bottom = "75%"
  265. Sshaft.style.bottom = "70%"
  266. Sstriker.style.bottom = "65%"
  267. Sares.style.bottom = "60%"
  268. Sclose.style.bottom = "60%"
  269. Smammoth.style.bottom = "55%"
  270. Sgauss.style.bottom = "50%"
  271. Shopper.style.bottom = "45%"
  272. Srico.style.bottom = "40%"
  273.  
  274.  
  275. stateWindow.appendChild(Scrusader)
  276. stateWindow.appendChild(Sshaft)
  277. stateWindow.appendChild(Sares)
  278. stateWindow.appendChild(Sstriker)
  279. stateWindow.appendChild(Sclose)
  280. stateWindow.appendChild(Smammoth)
  281. stateWindow.appendChild(Sgauss)
  282. stateWindow.appendChild(Shopper)
  283. stateWindow.appendChild(Srico)
  284.  
  285.  
  286. onOff_style = {
  287. position:"fixed",
  288. fontSize:"13px",
  289. padding:"10px 5%",
  290. color:"red",
  291. right:"0%",
  292. fontWeight: "1000"
  293.  
  294. }
  295.  
  296.  
  297. State1 = document.createElement("span")
  298. State7 = document.createElement("span")
  299. State10 = document.createElement("span")
  300. State6 = document.createElement("span")
  301. state2 = document.createElement("span")
  302. State3 = document.createElement("span")
  303. State4 = document.createElement("span")
  304. State8 = document.createElement("span")
  305. State9 = document.createElement("span")
  306.  
  307.  
  308.  
  309. Object.assign(State1.style,onOff_style)
  310. Object.assign(State7.style,onOff_style)
  311. Object.assign(State10.style,onOff_style)
  312. Object.assign(State6.style,onOff_style)
  313. Object.assign(State3.style,onOff_style)
  314. Object.assign(State4.style,onOff_style)
  315. Object.assign(State8.style,onOff_style)
  316. Object.assign(State9.style,onOff_style)
  317.  
  318.  
  319.  
  320. State1.innerText = "NULL"
  321. State7.innerText = "NULL"
  322. State6.innerText = "NULL"
  323. State10.innerText = "NULL"
  324. State3.innerText = "NULL"
  325. State4.innerText = "NULL"
  326. State8.innerText = "OFF"
  327. State9.innerText = "OFF"
  328.  
  329.  
  330. stateWindow.appendChild(State1)
  331. stateWindow.appendChild(State7)
  332. stateWindow.appendChild(State6)
  333. stateWindow.appendChild(State10)
  334. stateWindow.appendChild(State3)
  335. stateWindow.appendChild(State4)
  336. stateWindow.appendChild(State8)
  337. stateWindow.appendChild(State9)
  338.  
  339.  
  340.  
  341. State1.style.bottom = "75%"
  342. State7.style.bottom = "70%"
  343. State6.style.bottom = "65%"
  344. State10.style.bottom = "60%"
  345. State3.style.bottom = "55%"
  346. State4.style.bottom = "50%"
  347. State8.style.bottom = "45%"
  348. State9.style.bottom = "40%"
  349.  
  350.  
  351.  
  352.  
  353. s5p = 0
  354. s7p = 0
  355. s10p = 0
  356. s6p = 0
  357. s3p = 0
  358. s4p = 0
  359. s8p = 0
  360. s9p = 0
  361.  
  362.  
  363. document.addEventListener('keydown', (e) => { if (e.keyCode === 35 && game.isNotOpenChat()){
  364. s6p+=1
  365. if(s6p%2==1){
  366. State6.innerText = "NULL"
  367. State6.style.color = "#00D000"
  368. window.hy = setInterval(hacks.striker,1)
  369.  
  370.  
  371. }
  372.  
  373. if(s6p%2==0){
  374.  
  375. clearInterval(window.hy)
  376. State6.innerText = "NULL"
  377. State6.style.color = "#FF0000"
  378. }
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386. }})
  387.  
  388.  
  389.  
  390.  
  391.  
  392. document.addEventListener('keydown', (e) => { if (e.keyCode === 117 && game.isNotOpenChat()){
  393. s4p+=1
  394. if(s4p%2==1){
  395. State4.innerText = "NULL"
  396. State4.style.color = "#00D000"
  397. window.hq = setInterval(hacks.gauss,1)
  398.  
  399.  
  400. }
  401.  
  402. if(s4p%2==0){
  403.  
  404. clearInterval(window.hq)
  405. State4.innerText = "NULL"
  406. State4.style.color = "#FF0000"
  407. }
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415. }})
  416.  
  417.  
  418. document.addEventListener('keydown', (e) => { if (e.keyCode === 56 && game.isNotOpenChat()){
  419. s8p+=1
  420. if(s8p%2==1){
  421. State8.innerText = "ON"
  422. State8.style.color = "#00D000"
  423. window.hv = setInterval(hacks.hopper,1)
  424.  
  425.  
  426. }
  427.  
  428. if(s8p%2==0){
  429.  
  430. clearInterval(window.hv)
  431. State8.innerText = "OFF"
  432. State8.style.color = "#FF0000"
  433. }
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441. }})
  442.  
  443.  
  444. document.addEventListener('keydown', (e) => { if (e.keyCode === 57 && game.isNotOpenChat()){
  445. s9p+=1
  446. if(s9p%2==1){
  447. State9.innerText = "ON"
  448. State9.style.color = "#00D000"
  449. window.ha = setInterval(hacks.rico,1)
  450.  
  451.  
  452. }
  453.  
  454. if(s9p%2==0){
  455.  
  456. clearInterval(window.ha)
  457. State9.innerText = "OFF"
  458. State9.style.color = "#FF0000"
  459. }
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467. }})
  468.  
  469. WpressCount = 0
  470. document.addEventListener('keydown', (e) => { if (e.keyCode === 48 && game.isNotOpenChat()){
  471. WpressCount ++
  472. if(WpressCount%2==1){
  473. root.appendChild(stateWindow)
  474.  
  475.  
  476. }
  477.  
  478. if(WpressCount%2==0){
  479.  
  480. root.removeChild(stateWindow)
  481.  
  482. }
  483.  
  484.  
  485. }})

QingJ © 2025

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