Results 1 to 2 of 2

Thread: greasemonkey to chrome userscripts

  1. #1
    Join Date
    Jan 2006
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    greasemonkey to chrome userscripts

    Anyone have any guides on how to convert greasemonkey scripts to chrome userscripts?

    I am having trouble with one of my scripts editing a text input in a form. I am referencing it via id.
    I am infallible, you should know that by now.
    "My favorite language is call STAR. It's extremely concise. It has exactly one verb '*', which does exactly what I want at the moment." --Larry Wall
    (02:15:31 PM) ***TimToady and snake oil go way back...
    42 lines of Perl - SHI - Home Site

  2. #2
    Join Date
    Jul 2008
    Beans
    1,491

    Re: greasemonkey to chrome userscripts

    <input type="text"/> has a quirk: while often <input type="text">Value</input> appears to work; that should be actually <input type="text" value="Value"/>.

    So you may see unexpected results if the HTML/JS code is cutting corners there: try checking input.value as well as inpunt.innerHMTL; with input = document.getElementById('whateverYourID').

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •