Free forever

chat as many times you want it wont tell you to pay

  1. // ==UserScript==
  2. // @name Free forever
  3. // @namespace Violentmonkey Scripts
  4. // @match https://www.genschat.com/*
  5. // @grant none
  6. // @version 1.0
  7. // @license MIT
  8. // @author -
  9. // @description chat as many times you want it wont tell you to pay
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. if (typeof(Storage) !== "undefined") {
  15. // Get the current value of "aiChat" from local storage
  16. var aiChatValue = localStorage.getItem("aiChat");
  17.  
  18. // Check if "aiChat" value exists
  19. if (aiChatValue !== null) {
  20. // Parse the "aiChat" value as JSON
  21. var aiChatObj = JSON.parse(aiChatValue);
  22.  
  23. // Check if "dayConfig" array exists
  24. if (aiChatObj.hasOwnProperty("dayConfig")) {
  25. // Modify the "free" value in the "dayConfig" array
  26. aiChatObj.dayConfig.free = 1000;
  27.  
  28. // Stringify the modified "aiChat" object
  29. var modifiedValue = JSON.stringify(aiChatObj);
  30.  
  31. // Update the "aiChat" value in local storage
  32. localStorage.setItem("aiChat", modifiedValue);
  33. console.log("Successfully modified the local storage value.");
  34. } else {
  35. console.log("The 'dayConfig' array does not exist in 'aiChat' value.");
  36. }
  37. } else {
  38. console.log("The 'aiChat' value does not exist in local storage.");
  39. }
  40. } else {
  41. console.log("Local storage is not supported by the browser.");
  42. }
  43. function processElements() {
  44. // Rename elements with class "blur" to "f"
  45. const blurElements = document.querySelectorAll('.blur');
  46. blurElements.forEach(function(element) {
  47. element.classList.remove('blur');
  48. element.classList.add('f');
  49. });
  50.  
  51. // Remove classes "lock", "van-icon", "van-icon-lock", "van-overlay", "van-popup", and "van-popup--center"
  52. const removeElements = document.querySelectorAll('.lock, .van-icon, .van-icon-lock, .van-overlay, .van-popup, .van-popup--center');
  53. const hideElements = document.querySelectorAll('.van-popup, .van-popup--center');
  54. hideElements.forEach(function(element) {
  55. element.style.display = 'none';
  56. });
  57. removeElements.forEach(function(element) {
  58.  
  59. element.classList.remove('lock', 'van-icon', 'van-icon-lock');
  60. });
  61.  
  62. // Call the function again after a delay
  63. setTimeout(processElements, 100);
  64. }
  65.  
  66. // Start the element processing
  67. processElements();
  68. })();