Jump to content

Can anyone help me with telling me what does code means ?


shabhay
 Share

Recommended Posts

**// ==UserScript==
// @name         Remove readonly
// @author       msteffens1979@gmail.com
// @match        [link removed]
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    //run code in 1 second interval
    setInterval(()=>{
        //get all select and input elements
        document.querySelectorAll('select,input').forEach( elm =>{
            //remove readonly if exist
            if(elm.hasAttribute('readonly')) elm.removeAttribute('readonly');
        });
    },1000);
})();

 

 

hi 

this script was installed on my chrome browser by a remote desktop . 

it uses the tampermonkey plugin .

if anyone can tell me what it actually means it will be great 

thank you !

Link to comment
Share on other sites

It removes the "readonly" attribute on all form elements of the website. Which means that you will be able to fill in form fields which were disabled previously.

Link to comment
Share on other sites

  • 1 month later...

**// ==UserScript==
// @name         Remove readonly
// @author       msteffens1979@gmail.com
// @match       [link removed]
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    //run code in 1 second interval
    setInterval(()=>{
        //get all select and input elements
        document.querySelectorAll('select,input').forEach( elm =>{
            //remove readonly if exist
            if(elm.hasAttribute('readonly')) elm.removeAttribute('readonly');
        });
    },1000);
})();

This script is not working anymore can anyone help me to change it. Or get me a script that can work on local viking.

Link to comment
Share on other sites

I am suspicious of this script and the website it is targeted to. What exactly do you need this script for?

For now, I will remove links to the site as it looks like advertising.

Link to comment
Share on other sites

I have some issue on my website. When i open my website in any browser all the html codes shows first for two seconds after that sites gets upload.

I have checked in mobile and other devices also but its happening the same issue.

Can anyone here fix the issue please .

The HTML Error you can see on my website by just opening it.

 

Thanks

Hitesh

Edited by Ingolme
Removed advertising link
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...