ST Spamer

gartic powerful spammer

目前為 2024-08-20 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name ST Spamer
  3. // @description gartic powerful spammer
  4. // @version 1.0
  5. // @author STRAGON
  6. // @license N/A
  7. // @match *://gartic.io/*
  8. // @match *://*/*?__cpo=aHR0cHM6Ly9nYXJ0aWMuaW8
  9. // @icon https://static.cdnlogo.com/logos/s/96/st.svg
  10. // @grant GM_setValue
  11. // @grant GM_getValue
  12. // @grant GM_addValueChangeListener
  13. // @grant GM_addStyle
  14. // @grant GM_openInTab
  15. // @namespace https://gf.qytechs.cn/en/users/1353946-stragon-x
  16. // ==/UserScript==
  17.  
  18.  
  19.  
  20. (function() {
  21. let originalSend = WebSocket.prototype.send, setTrue = false;
  22. window.wsObj = {};
  23.  
  24. WebSocket.prototype.send = function(data) {
  25. console.log("Gönderilen Veri: " + data);
  26. originalSend.apply(this, arguments);
  27. if (Object.keys(window.wsObj).length == 0) {
  28. window.wsObj = this;
  29. window.eventAdd();
  30. }
  31. };
  32.  
  33. window.eventAdd = () => {
  34. if (!setTrue) {
  35. setTrue = 1;
  36. window.wsObj.addEventListener("message", (msg) => {
  37. try {
  38. let data = JSON.parse(msg.data.slice(2));
  39. console.log(data);
  40. if (data[0] == 5) {
  41. window.wsObj.lengthID = data[1];
  42. window.wsObj.id = data[2];
  43. window.wsObj.roomCode = data[3];
  44. }
  45. } catch (err) {}
  46. });
  47. }
  48. };
  49.  
  50. var buttonss = document.createElement("button");
  51. buttonss.style.position = "fixed";
  52. buttonss.style.right = "2px";
  53. buttonss.style.top = "17%";
  54. buttonss.style.transform = "translateY(-50%)";
  55. buttonss.style.background = "red";
  56. buttonss.style.color = "white";
  57. buttonss.style.border = "none";
  58. buttonss.style.padding = "10px 20px";
  59. buttonss.style.borderRadius = "10px";
  60. buttonss.style.cursor = "pointer";
  61. buttonss.style.zIndex = "99999";
  62. buttonss.style.borderRadius = "100px";
  63. buttonss.style.border = "3px solid black";
  64.  
  65. buttonss.innerHTML = "←";
  66.  
  67. buttonss.addEventListener("click", function() {
  68.  
  69. if (panel.style.display === "none" && panel1.style.display === "none" && panel2.style.display === "none") {
  70.  
  71. panel.style.display = "block";
  72. panel1.style.display = "block";
  73. panel2.style.display = "block";
  74. panelr.style.display = "block";
  75. var svg = button3.querySelector('svg');
  76. var svgx = button1.querySelector('svg');
  77. var svgy = button2.querySelector('svg');
  78.  
  79. svg.setAttribute('stroke', '#ff0000');
  80. svgy.setAttribute('stroke', '#ff0000');
  81. svgx.setAttribute('stroke', '#ffffff');
  82. buttonss.innerHTML = "←";
  83.  
  84. } else {
  85.  
  86. panelr.style.display = "none";
  87. panel.style.display = "none";
  88. panel1.style.display = "none";
  89. panel2.style.display = "none";
  90. buttonss.innerHTML = "→"; // Change the icon back to a left-facing arrow
  91. }
  92. });
  93.  
  94. document.body.appendChild(buttonss);
  95.  
  96. var panelr = document.createElement("div");
  97. panelr.style.width = "45px";
  98. panelr.style.height = "127px";
  99. panelr.style.backgroundColor = "#000";
  100. panelr.style.borderRadius = "50px";
  101. panelr.style.border = "2px solid #FF0000";
  102. panelr.style.position = "fixed";
  103. panelr.style.right = "7px";
  104. panelr.style.top = "19.5%";
  105. panelr.id = "panelr";
  106. panelr.style.display = "flex";
  107. panelr.style.flexDirection = "column";
  108. panelr.style.justifyContent = "center";
  109. panelr.style.alignItems = "center";
  110. panelr.style.textAlign = "center";
  111. panelr.style.zIndex = "99999";
  112.  
  113.  
  114. // Create three buttons
  115. var button1 = document.createElement("button");
  116. button1.innerHTML = "<svg xmlns='http://www.w3.org/2000/svg' width='27' height='27' viewBox='0 0 24 24' fill='none' stroke='#ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 9v11a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9'/><path d='M9 22V12h6v10M2 10.6L12 2l10 8.6'/></svg>";
  117. button1.style.marginBottom = "10px";
  118. button1.style.marginTop = "7px";
  119. button1.style.zIndex = "99999";
  120. button1.addEventListener("click", function() {
  121.  
  122. var svg = button3.querySelector('svg');
  123. var svgx = button2.querySelector('svg');
  124. var svgy = button1.querySelector('svg');
  125.  
  126.  
  127. svg.setAttribute('stroke', '#ff0000');
  128. svgx.setAttribute('stroke', '#ff0000');
  129. svgy.setAttribute('stroke', '#ffffff');
  130.  
  131. panel.style.display = "block";
  132. panel1.style.display = "none";
  133. panel2.style.display = "none";
  134.  
  135. });
  136.  
  137. var button2 = document.createElement("button");
  138. button2.innerHTML = "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#ff0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'></path></svg>";
  139. button2.style.marginBottom = "10px";
  140. button2.style.marginTop = "01px";
  141. button2.style.zIndex = "99999";
  142. button2.addEventListener("click", function() {
  143.  
  144. var svg = button3.querySelector('svg');
  145. var svgx = button2.querySelector('svg');
  146. var svgy = button1.querySelector('svg');
  147.  
  148.  
  149. svg.setAttribute('stroke', '#ff0000');
  150. svgx.setAttribute('stroke', '#ffffff');
  151. svgy.setAttribute('stroke', '#ff0000');
  152.  
  153. panel.style.display = "none";
  154. panel1.style.display = "block";
  155. panel2.style.display = "none";
  156.  
  157. });
  158.  
  159.  
  160. let panel = document.createElement("div");
  161. panel.style.position = "fixed";
  162. panel.style.top = "15%";
  163. panel.style.right = "63px";
  164. panel.style.width = "180px";
  165. panel.style.height = "150px";
  166. panel.style.backgroundColor = "#000";
  167. panel.style.borderRadius = "10px";
  168. panel.style.padding = "8px";
  169. panel.style.zIndex = "1000";
  170. panel.style.textAlign = "center";
  171. panel.style.border = "2px solid red";
  172. panel.style.zIndex = "9999999";
  173. panel.style.display = "block";
  174.  
  175. var field1 = document.createElement("input");
  176. field1.type = "text";
  177. field1.style.width = "85%";
  178. field1.style.height = "10px";
  179. field1.style.backgroundColor = "#000";
  180. field1.style.border = "2px solid #fff";
  181. field1.style.padding = "10px";
  182. field1.style.marginBottom = "5px";
  183. field1.style.zIndex = "999999";
  184. field1.style.borderRadius = "5px";
  185. field1.style.color = "#fff";
  186. field1.placeholder = "message 1";
  187.  
  188. var field2 = document.createElement("input");
  189. field2.type = "text";
  190. field2.style.width = "85%";
  191. field2.style.height = "10px";
  192. field2.style.backgroundColor = "#000";
  193. field2.style.border = "2px solid #fff";
  194. field2.style.padding = "10px";
  195. field2.style.marginBottom = "5px";
  196. field2.style.zIndex = "999999";
  197. field2.style.borderRadius = "5px";
  198. field2.style.color = "#fff";
  199. field2.placeholder = "message 2";
  200.  
  201. var field3 = document.createElement("input");
  202. field3.type = "text";
  203. field3.style.width = "85%";
  204. field3.style.height = "10px";
  205. field3.style.backgroundColor = "#000";
  206. field3.style.border = "2px solid #fff";
  207. field3.style.padding = "10px";
  208. field3.style.marginBottom = "5px";
  209. field3.style.zIndex = "999999";
  210. field3.style.borderRadius = "5px";
  211. field3.style.color = "#fff";
  212. field3.placeholder = "message 3";
  213.  
  214.  
  215. var buttonx = document.createElement("button");
  216. buttonx.style.width = "98%";
  217. buttonx.style.height = "30px";
  218. buttonx.style.backgroundColor = "red";
  219. buttonx.style.color = "#fff";
  220. buttonx.style.border = "none";
  221. buttonx.style.borderRadius = "5px";
  222. buttonx.style.cursor = "pointer";
  223. buttonx.innerHTML = "Start";
  224.  
  225.  
  226. panel.appendChild(field1);
  227. panel.appendChild(field2);
  228. panel.appendChild(field3);
  229. panel.appendChild(buttonx);
  230.  
  231. document.body.appendChild(panel);
  232.  
  233. let intervalId = null;
  234. let isRunning = false;
  235.  
  236. buttonx.addEventListener('click', () => {
  237. if (!isRunning) {
  238. startScript();
  239. buttonx.innerHTML = 'Stop';
  240. isRunning = true;
  241. } else {
  242. clearInterval(intervalId);
  243. buttonx.innerHTML = 'Start';
  244. isRunning = false;
  245. }
  246.  
  247. });
  248.  
  249.  
  250.  
  251.  
  252.  
  253. function startScript() {
  254.  
  255. intervalId = setInterval(function() {
  256. const invisibleChar = String.fromCharCode(8203);
  257. const randomInvisibleChars = invisibleChar.repeat(Math.floor(Math.random() * 3) + 1);
  258. const message1 = `42[11,${window.wsObj.id},"${field1.value}"]`;
  259. const message2 = `42[11,${window.wsObj.id},"${field2.value}${randomInvisibleChars}"]`;
  260. const message3 = `42[11,${window.wsObj.id},"${field3.value}"]`;
  261. window.wsObj.send(message1);
  262. window.wsObj.send(message2);
  263. window.wsObj.send(message3);
  264. }, 2450);
  265.  
  266. }
  267.  
  268. let panel1 = document.createElement("div");
  269. panel1.style.position = "fixed";
  270. panel1.style.top = "15%";
  271. panel1.style.right = "63px";
  272. panel1.style.width = "180px";
  273. panel1.style.height = "150px";
  274. panel1.style.backgroundColor = "#000";
  275. panel1.style.borderRadius = "10px";
  276. panel1.style.padding = "8px";
  277. panel1.style.zIndex = "1000";
  278. panel1.style.textAlign = "center";
  279. panel1.style.border = "2px solid red";
  280. panel1.style.zIndex = "999999";
  281. panel1.style.display = "none";
  282.  
  283. var field1x = document.createElement("input");
  284. field1x.type = "text";
  285. field1x.style.width = "85%";
  286. field1x.style.height = "10px";
  287. field1x.style.backgroundColor = "#000";
  288. field1x.style.border = "2px solid #fff";
  289. field1x.style.padding = "10px";
  290. field1x.style.marginBottom = "5px";
  291. field1x.style.zIndex = "999999";
  292. field1x.style.borderRadius = "5px";
  293. field1x.style.color = "#fff";
  294. field1x.placeholder = "Answer 1";
  295.  
  296. var field2x = document.createElement("input");
  297. field2x.type = "text";
  298. field2x.style.width = "85%";
  299. field2x.style.height = "10px";
  300. field2x.style.backgroundColor = "#000";
  301. field2x.style.border = "2px solid #fff";
  302. field2x.style.padding = "10px";
  303. field2x.style.marginBottom = "5px";
  304. field2x.style.zIndex = "999999";
  305. field2x.style.borderRadius = "5px";
  306. field2x.style.color = "#fff";
  307. field2x.placeholder = "Answer 2";
  308.  
  309. var field3x = document.createElement("input");
  310. field3x.type = "text";
  311. field3x.style.width = "85%";
  312. field3x.style.height = "10px";
  313. field3x.style.backgroundColor = "#000";
  314. field3x.style.border = "2px solid #fff";
  315. field3x.style.padding = "10px";
  316. field3x.style.marginBottom = "5px";
  317. field3x.style.zIndex = "999999";
  318. field3x.style.borderRadius = "5px";
  319. field3x.style.color = "#fff";
  320. field3x.placeholder = "Answer 3";
  321.  
  322.  
  323. var buttonxx = document.createElement("button");
  324. buttonxx.style.width = "98%";
  325. buttonxx.style.height = "30px";
  326. buttonxx.style.backgroundColor = "red";
  327. buttonxx.style.color = "#fff";
  328. buttonxx.style.border = "none";
  329. buttonxx.style.borderRadius = "5px";
  330. buttonxx.style.cursor = "pointer";
  331. buttonxx.innerHTML = "Start";
  332.  
  333.  
  334. panel1.appendChild(field1x);
  335. panel1.appendChild(field2x);
  336. panel1.appendChild(field3x);
  337. panel1.appendChild(buttonxx);
  338.  
  339. document.body.appendChild(panel1);
  340.  
  341. let intervalIdx = null;
  342. let isRunningx = false;
  343.  
  344. buttonxx.addEventListener('click', () => {
  345. if (!isRunningx) {
  346. startScriptx();
  347. buttonxx.innerHTML = 'Stop';
  348. isRunningx = true;
  349. } else {
  350. clearInterval(intervalIdx);
  351. buttonxx.innerHTML = 'Start';
  352. isRunningx = false;
  353. }
  354.  
  355. });
  356.  
  357. function startScriptx() {
  358.  
  359. intervalIdx = setInterval(function() {
  360. const invisibleChar = String.fromCharCode(8203);
  361. const randomInvisibleChars = invisibleChar.repeat(Math.floor(Math.random() * 3) + 1);
  362. const message1 = `42[13,${window.wsObj.id},"${field1x.value}"]`;
  363. const message2 = `42[13,${window.wsObj.id},"${field2x.value}${randomInvisibleChars}"]`;
  364. const message3 = `42[13,${window.wsObj.id},"${field3x.value}"]`;
  365. window.wsObj.send(message1);
  366. window.wsObj.send(message2);
  367. window.wsObj.send(message3);
  368. }, 450);
  369.  
  370. }
  371.  
  372. let panel2 = document.createElement("div");
  373. panel2.style.position = "fixed";
  374. panel2.style.top = "15%";
  375. panel2.style.right = "63px";
  376. panel2.style.width = "180px";
  377. panel2.style.height = "150px";
  378. panel2.style.backgroundColor = "#000";
  379. panel2.style.borderRadius = "10px";
  380. panel2.style.padding = "8px";
  381. panel2.style.zIndex = "1000";
  382. panel2.style.textAlign = "center";
  383. panel2.style.border = "2px solid red";
  384. panel2.style.zIndex = "99999";
  385. panel2.style.display = "none";
  386.  
  387. var field1y = document.createElement("input");
  388. field1y.type = "text";
  389. field1y.style.width = "85%";
  390. field1y.style.height = "10px";
  391. field1y.style.backgroundColor = "#000";
  392. field1y.style.border = "2px solid #fff";
  393. field1y.style.padding = "10px";
  394. field1y.style.marginBottom = "5px";
  395. field1y.style.zIndex = "999999";
  396. field1y.style.borderRadius = "5px";
  397. field1y.style.color = "#fff";
  398. field1y.placeholder = "Broadcast 1";
  399.  
  400. var field2y = document.createElement("input");
  401. field2y.type = "text";
  402. field2y.style.width = "85%";
  403. field2y.style.height = "10px";
  404. field2y.style.backgroundColor = "#000";
  405. field2y.style.border = "2px solid #fff";
  406. field2y.style.padding = "10px";
  407. field2y.style.marginBottom = "5px";
  408. field2y.style.zIndex = "999999";
  409. field2y.style.borderRadius = "5px";
  410. field2y.style.color = "#fff";
  411. field2y.placeholder = "Broadcast 2";
  412.  
  413. var field3y = document.createElement("input");
  414. field3y.type = "text";
  415. field3y.style.width = "85%";
  416. field3y.style.height = "10px";
  417. field3y.style.backgroundColor = "#000";
  418. field3y.style.border = "2px solid #fff";
  419. field3y.style.padding = "10px";
  420. field3y.style.marginBottom = "5px";
  421. field3y.style.zIndex = "999999";
  422. field3y.style.borderRadius = "5px";
  423. field3y.style.color = "#fff";
  424. field3y.placeholder = "Broadcast 3";
  425.  
  426.  
  427. var buttonxxx = document.createElement("button");
  428. buttonxxx.style.width = "98%";
  429. buttonxxx.style.height = "30px";
  430. buttonxxx.style.backgroundColor = "red";
  431. buttonxxx.style.color = "#fff";
  432. buttonxxx.style.border = "none";
  433. buttonxxx.style.borderRadius = "5px";
  434. buttonxxx.style.cursor = "pointer";
  435. buttonxxx.innerHTML = "Start";
  436.  
  437.  
  438. panel2.appendChild(field1y);
  439. panel2.appendChild(field2y);
  440. panel2.appendChild(field3y);
  441. panel2.appendChild(buttonxxx);
  442.  
  443. document.body.appendChild(panel2);
  444.  
  445. let intervalIdxx = null;
  446. let intervalIdy = null;
  447. let isRunningxx = false;
  448.  
  449. buttonxxx.addEventListener('click', () => {
  450. if (!isRunningxx) {
  451. startScripts();
  452. buttonxxx.innerHTML = 'Stop';
  453. isRunningxx = true;
  454.  
  455. } else {
  456. clearInterval(intervalIdxx);
  457. clearInterval(intervalIdy);
  458. buttonxxx.innerHTML = 'Start';
  459. isRunningxx = false;
  460.  
  461. }
  462. });
  463.  
  464. function startScripts() {
  465. intervalIdxx = setInterval(() => {
  466. executeScriptxx();
  467. }, 450);
  468.  
  469. intervalIdy = setInterval(() => {
  470. executeScripty();
  471. }, 2450);
  472. }
  473.  
  474. function executeScriptxx() {
  475. const invisibleChar = String.fromCharCode(8203);
  476. const randomInvisibleChars = invisibleChar.repeat(Math.floor(Math.random() * 3) + 1);
  477. const message1 = `42[13,${window.wsObj.id},"${field1y.value}"]`;
  478. const message2 = `42[13,${window.wsObj.id},"${field2y.value}${randomInvisibleChars}"]`;
  479. const message3 = `42[13,${window.wsObj.id},"${field3y.value}"]`;
  480. window.wsObj.send(message1);
  481. window.wsObj.send(message2);
  482. window.wsObj.send(message3);
  483. }
  484.  
  485. function executeScripty() {
  486. const invisibleChar = String.fromCharCode(8203);
  487. const randomInvisibleChars = invisibleChar.repeat(Math.floor(Math.random() * 3) + 1);
  488. const message4 = `42[11,${window.wsObj.id},"${field1y.value}"]`;
  489. const message5 = `42[11,${window.wsObj.id},"${field2y.value}${randomInvisibleChars}"]`;
  490. const message6 = `42[11,${window.wsObj.id},"${field3y.value}"]`;
  491. window.wsObj.send(message4);
  492. window.wsObj.send(message5);
  493. window.wsObj.send(message6);
  494. }
  495.  
  496.  
  497. var button3 = document.createElement("button");
  498. button3.innerHTML = "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='#ff0000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'></path><polyline points='22,6 12,13 2,6'></polyline></svg>";
  499. button3.style.marginBottom = "7px";
  500. button3.style.zIndex = "99999";
  501.  
  502. button3.addEventListener("click", function() {
  503.  
  504. var svg = button3.querySelector('svg');
  505. var svgx = button2.querySelector('svg');
  506. var svgy = button1.querySelector('svg');
  507.  
  508. svg.setAttribute('stroke', '#ffffff');
  509. svgx.setAttribute('stroke', '#ff0000');
  510. svgy.setAttribute('stroke', '#ff0000');
  511.  
  512. panel.style.display = "none";
  513. panel1.style.display = "none";
  514. panel2.style.display = "block";
  515.  
  516. });
  517.  
  518. // Add buttons to panel
  519. panelr.appendChild(button1);
  520. panelr.appendChild(button2);
  521. panelr.appendChild(button3);
  522.  
  523. // Add panel to body
  524. document.body.appendChild(panelr);
  525.  
  526.  
  527.  
  528. })();

QingJ © 2025

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