Cristmas

https://discord.gg/UsPCMBDGES

  1. // ==UserScript==
  2. // @name Cristmas
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.8
  5. // @description https://discord.gg/UsPCMBDGES
  6. // @author YaoYT#4707
  7. // @match *://vanis.io/*
  8. // @compatible chrome
  9. // @compatible opera
  10. // @compatible firefox
  11. // @icon https://cdn.discordapp.com/attachments/891105311434367076/972941615607984128/60234575-fondo-rojo-solido-o-papel-rojo-con-textura-de-fondo-para-el-diseno-del-dia-de-san-valentin-o-fondo-d11.jpg
  12. // @require http://code.jquery.com/jquery-3.3.1.min.js
  13. // @require https://code.jquery.com/ui/1.12.0/jquery-ui.min.js
  14. // @require https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.js
  15. // @run-at document-start
  16. // @grant none
  17. // @license N/A
  18. // ==/UserScript==
  19.  
  20.  
  21. (function() {
  22. var local = {
  23. SCRIPT_CONFIG: {
  24. NAME_COLOR: "",
  25. },
  26. MENU_CONFIG: {
  27.  
  28.  
  29.  
  30. COLOR_1: "#0A2A64",
  31. COLOR_2:"#0A2A64",
  32. RAINBOW: true,
  33. },
  34.  
  35.  
  36. COLOR_HUE: 50,
  37. COLOR_HUE2: 300,
  38. GAME_WS: false,
  39. GAME_INIT: false,
  40. PLAYER_PACKET_SPAWN: [],
  41. PLAYER_SOCKET: false,
  42. PLAYER_IS_DEAD: false,
  43. PLAYER_MOUSE: {
  44. x: false,
  45. y: false,
  46. },
  47. GAME_BYPASS: {
  48. mouseFrozen: Symbol(),
  49. utf8: new TextEncoder()
  50. }
  51. }
  52.  
  53. function changeHue() {
  54. 355 == local.COLOR_HUE && (local.COLOR_HUE = 0), local.COLOR_HUE++;
  55. 355 == local.COLOR_HUE2 && (local.COLOR_HUE2 = 0), local.COLOR_HUE2++;
  56. $('.fade-box').css({
  57. background: 'linear-gradient(to right bottom,hsl('+local.COLOR_HUE+', 60%, 80%),hsl('+local.COLOR_HUE2+', 20%, 20%)'
  58. })
  59. }
  60. function ready() {
  61. setInterval(() => {
  62. if(local.MENU_CONFIG.RAINBOW) {
  63. changeHue()
  64. } else {
  65. $('.fade-box').css({
  66. background: `linear-gradient(to right bottom,${local.MENU_CONFIG.COLOR_1},${local.MENU_CONFIG.COLOR_2})`
  67. })
  68. }
  69. }, 10)
  70. }
  71. const { fillText } = CanvasRenderingContext2D.prototype;
  72. CanvasRenderingContext2D.prototype.fillText = function(text, x, y) {
  73. let config = local.SCRIPT_CONFIG
  74. if(text == document.getElementById("nickname").value) {
  75. this.fillStyle = config.NAME_COLOR;
  76. }
  77. fillText.call(this, ...arguments);
  78. }
  79. document.addEventListener("DOMContentLoaded", ready)
  80.  
  81. })();
  82.  
  83. var tempo;
  84. var cont = document.getElementsByClassName("container")
  85. function verificar(){
  86.  
  87. if(cont[2].style.display== ""){
  88.  
  89. document.querySelector("[data-v-b0b10308]").click();
  90. }}
  91. function iniciar(){
  92.  
  93. tempo = setInterval(verificar, 0)
  94. }
  95. iniciar()
  96.