Discussions » Creation Requests

Ho do I fix error

§
Posted: 2020-07-01

Ho do I fix error

recently. I thought that script form w3schools.com would work, but the script Work.getElementsByClassName("maxLength")[0].innerHTML = "∞"; was causing the error. Can someone fix? I wanted to make a script without changing the max Length element for brutal.io

§
Posted: 2020-07-01

Script source, please.

§
Posted: 2020-07-01

// ==UserScript== // @name No more max limits or usernames in brutal.io // @namespace http://tampermonkey.net/ // @version 0.1 // @description Relax with a lot of words in your username // @author Jonas // @match ://brutal.io/ // @grant none // ==/UserScript==

function start() { var Work = document.getElementsByClassName('form-control input-nick')[0]; Work.getElementsByClassName("maxLength")[0].innerHTML = "∞"; setTimeout(start, 0); } start();

§
Posted: 2020-07-01

@Helloimjona said: // ==UserScript== // @name No more max limits or usernames in brutal.io // @namespace http://tampermonkey.net/ // @version 0.1 // @description Relax with a lot of words in your username // @author Jonas // @match ://brutal.io/ // @grant none // ==/UserScript==

function start() { var Work = document.getElementsByClassName('form-control input-nick')[0]; Work.getElementsByClassName("maxLength")[0].innerHTML = "∞"; setTimeout(start, 0); } start(); really sorry but i have no source. the posted code is giving an error

§
Posted: 2020-07-01
Edited: 2020-07-01

in theory should work:

function start () {
    var n=document.getElementById('nick');
    if(n)n.removeAttribute('maxlength');
    else setTimeout(start,0);
    }
start ();
§
Posted: 2020-07-02

@Bogudan said: in theory should work:

function start () {
  var n=document.getElementById('nick');
  if(n)n.removeAttribute('maxlength');
  else setTimeout(start,0);
  }
start ();

but I want to change like this maxLength=∞

§
Posted: 2020-07-02

@Helloimjona said:

@Bogudan said: in theory should work:

function start () {
    var n=document.getElementById('nick');
    if(n)n.removeAttribute('maxlength');
    else setTimeout(start,0);
    }
start ();

but I want to change like this maxLength=∞

but it still helped to get an infinite amount of characters in the username

Post reply

Sign in to post a reply.