New script

7/7/2024, 7:29:06 PM

  1. // ==UserScript==
  2. // @name New script
  3. // @namespace Violentmonkey Scripts
  4. // @match https://shellshock.io/
  5. // @grant none
  6. // @version 1.0
  7. // @author -
  8. // @description 7/7/2024, 7:29:06 PM
  9. // ==/UserScript==
  10. 'use strict';
  11.  
  12. (function() {
  13. // const mods = JSON.parse(document.currentScript.getAttribute("data-mods"));
  14. const mods = {
  15. DisableAdblockerChecker: true,
  16. AutoPistol: true,
  17. RedBois: true,
  18. ShieldHealth: false
  19. };
  20. window.XMLHttpRequest = class extends window.XMLHttpRequest {
  21. constructor() {
  22. super(...arguments);
  23. }
  24.  
  25. open() {
  26. if (arguments[1] && arguments[1].includes("shellshock.js")) {
  27. this.shell = true;
  28. }
  29.  
  30. super.open(...arguments);
  31. }
  32.  
  33. get response() {
  34. if (this.shell) {
  35. const res = super.response;
  36.  
  37. let modded = res;
  38.  
  39. if (mods.DisableAdblockerChecker) {
  40. modded = modded.replace(/checkAdBlocker\(\)\{.*?\}/, "checkAdBlocker(){this.adBlocker=false;}");
  41. }
  42.  
  43. if (mods.AutoPistol) {
  44. modded = modded.replace(/function (\w+)(\(\w\))(\{switch\(\w\)\{)(.*?)(case\"fire\":)(.*?)&&(\w+)(.*?)(break\;)/, "function $1$2$3$4$5$6&&$7$8setTimeout(()=>{if($7.weapon.constructor.weaponName==='Cluck 9mm'&&window.mouseDown){$1('fire')}},window.RATE_OF_FIRE);$9");
  45. console.log(modded);
  46. }
  47.  
  48. if (mods.RedBois) {
  49. modded = modded.replace(/(\w\.Color3\.FromHexString\()shellColors\[\w\]\)/, "$1window.SHELL_COLOUR)");
  50. }
  51.  
  52. if (mods.ShieldHealth) {
  53. modded = modded
  54. .replace(/(hardBoiledValue\:)(\w),(\w+\:)(\w)(\}=\w+),/, '$1$2,$3$4$5,hardBoiledValue=$2,hpValue=$4,')
  55. .replace(/(\w)\.innerText=Math\.floor\((\w)\)/, '$1.innerText=Math.floor(document.getElementById("hardBoiled-bar").style.display == "none"?$2:hardBoiledValue)');
  56. }
  57.  
  58. return modded;
  59. }
  60. return super.response;
  61. }
  62. };
  63.  
  64. window.mouseDown = false;
  65. document.addEventListener("mousedown", (event) => {
  66. if (event.button === 0) window.mouseDown = true;
  67. });
  68.  
  69. document.addEventListener("mouseup", (event) => {
  70. if (event.button === 0) window.mouseDown = false;
  71. });
  72.  
  73. window.RATE_OF_FIRE = 0;
  74. window.SHELL_COLOUR = "#FF0000";
  75.  
  76. console.log("EGG GAME MANAGER INJECTED");
  77. })();