Jump to content

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


Recommended Posts

**// ==UserScript==
// @name         Remove readonly
// @author       msteffens1979@gmail.com
// @match        https://localviking.com/*
// @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 post
Share on other sites

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...