Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8469025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:06:34+00:00 2026-06-10T16:06:34+00:00

Is it possible to remove an input but show the value with Greasemonkey? Or

  • 0

Is it possible to remove an input but show the value with Greasemonkey? Or disable it? For example:

<input name="prio" type="text" value="285" disabled="disabled">

I have no idea how to write any userscript. 🙁

It is for the PC in my company and I am not able to work with jQuery or edit the original source code.

First take a look for better understanding:

The code looks like that: http://jsfiddle.net/gv3XF/

But I want it like that: http://jsfiddle.net/gv3XF/1/

I tried it with Stylish but with that, I can only hide the input. I still need the value for result.

The input always is called name="prio" but the number from the value is changing.

What I want is to “kill” the input but show the result of the value.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T16:06:36+00:00Added an answer on June 10, 2026 at 4:06 pm

    You can’t just “kill” the input. If you do, then the necessary data might not get sent to the server when you submit the form.

    So, hide the input and show its value. Here’s a complete script that uses the awesome power of jQuery to do that:

    // ==UserScript==
    // @name        Make Priority more user friendly
    // @include     http://YOUR_SERVER.COM/YOUR_PATH/*
    // @require     http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
    // @grant       GM_getValue
    // ==/UserScript==
    //--- The @grant is to subvert a huge design flaw, introduced with GM version 1.
    
    var oldInput    = $("input[name=prio]");
    var priorityVal = oldInput.val ();
    oldInput.after ('<b id="gmPriorityValue">' + priorityVal + '</b>');
    oldInput.remove ();
    
    $("#gmPriorityValue").before ('<input type="hidden" name="prio">');
    $("input[name=prio]").val (priorityVal);
    

    Change the @include value to match your site(s).

    Note that you can’t change an <input>s type, so we delete the old input and create a new one with the same value, but hidden.



    Re: do that without jquery? the pc has no internet connection:

    You’re going to sneak the script file onto the PC, right? 🙂
    Download and sneak jQuery onto it too. With the jQuery file and the userscript file in the same folder, change the @require line to:

    // @require     jquery.min.js
    

    Then the script will install just fine, no internet connection required.



    Re: maybe the easiest way is to disable the input field:

    Okay, the script to do that is:

    // ==UserScript==
    // @name        Make Priority more user friendly
    // @include     http://YOUR_SERVER.COM/YOUR_PATH/*
    // @grant       GM_getValue
    // ==/UserScript==
    
    var oldInput = document.querySelector ("input[name=prio]");
    oldInput.setAttribute ("disabled", "disabled");
    

    Update:

    Extremely crucial information was omitted from the question — mainly that this is meant for Firefox 2.0(!!!) and Greasemonkey 0.8. Given that, change the code for the last script to:

    var oldInput = document.getElementsByName ("prio");
    oldInput[0].setAttribute ("disabled", "disabled");
    

    It should work, but it’s impossible to test, and compatibility tables don’t even cover such an obsolete browser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How to remove border around text/input boxes? (Chrome) Is there a way
Is it possible to remove a string key value from the registry on uninstall
How can I change masked text box properties for IP address input? For example
Is it possible to submit forms with input checkboxes, each containing the same name,
Possible Duplicate: PHP remove accents The title says most of it, but anyways... I
Possible Duplicate: remove duplicate from string in PHP Have a string like: $str =
Is it possible to remove the top and right major and minor tick marks
Is it possible to remove purchases of non-consumable products in the AppStore using the
Is it possible to remove or unset a particular stylesheet that's been appended? eg:
Is it possible to remove empty/blank lines using code formatting in Intellij IDEA?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.