whamer100

narrative-device 4096 char patch

Feb 9th, 2022 (edited)
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        4096 character patch - narrative-device.herokuapp.com
  3. // @namespace   Violentmonkey Scripts
  4. // @match       https://narrative-device.herokuapp.com/*
  5. // @grant       none
  6. // @version     1.0
  7. // @author      whamer100
  8. // @description 2/9/2022, 5:06:19 PM
  9. // ==/UserScript==
  10.  
  11. document.getElementById("theme1").maxLength=4096;
  12. document.getElementById("theme2").maxLength=4096;
  13.  
  14. const instr = document.getElementsByClassName("instructions");
  15.  
  16. if (instr.length >= 0) {
  17.     const h2 = instr[0].getElementsByTagName("h2");
  18.     if (h2.length >= 0) {
  19.         h2[0].innerHTML += "<br><br>Patched to have 4096 character inputs.";
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment