Worker ID Copy/Paste

Discussion in 'Scripts' started by sasquatch, Oct 21, 2012.

  1. sasquatch

    sasquatch User

    This script places a small box with your worker ID in it on HIT preview and accept pages, as well as on Qualtrics and Surveymonkey questionnaires. The position of the box is fixed so that it will remain at the same position on the page even if you have to scroll. Now, simply highlight and copy your ID and paste into the appropriate input field without leaving the page!

    Important: For the script to work, you must first visit your dashboard so the script can save your worker ID. After that, it should appear on the upper right of the screen when you are on a HIT preview page, while you are working on an accepted HIT, or when you are doing surveys on Qualtrics and Surveymonkey.

    If you have any questions, comments, problems or suggestions, please respond in this thread!

    http://userscripts.org/scripts/show/150674
     
    Last edited by a moderator: Oct 21, 2012
  2. Flora

    Flora Admin Staff Member

    Neat feature! Thanks!
     
  3. sasquatch

    sasquatch User

    No problem, hope it helps!
     
  4. sasquatch

    sasquatch User

    added https addresses at qualtrics
     
  5. ofnoaccout

    ofnoaccout New Member

    I like the addition of one's worker ID to Qualtrics and Surveymonkey, but the script conflicts a bit with the "Expanded Header Info" one. Maybe merge the survey functionality into the expanded header script?
     
  6. sasquatch

    sasquatch User

    i haven't used the expanded header info script, so i will have to run some tests to see what the issue is and how to fix it, thanks for the input!
     
  7. sasquatch

    sasquatch User

    ok i installed the expanded header info script
    is the conflict you're talking about the fact that both add their info in the same area on the screen?
    if that's the case i can just move the box down a bit, or to some other location on the page, perhaps the lower right

    unrelated to this issue but i'm going to implement [aka steal] the behavior where you can hover the mouse over the ID and have the it automatically highlight, takes one less step to copy that way
     
  8. CornFlake

    CornFlake User

  9. naisybee

    naisybee - Don't Blink -

    love it!!!!!!!!
     
  10. Caleb2476

    Caleb2476 Active Member

    Hmm I can't seem to get this to work for me. It shows it as installed and I've gone to my dashboard but I don't see the box with my ID anywhere :S
     
  11. TAC

    TAC User

    It's on the top right corner, orange color, under "sign out".
     
  12. Cowfin

    Cowfin Community Manager Staff Member

    If I'm not mistaken, that is not what he is referring to. The script adds a green box with the worker ID for you to copy on mturk and qualtrics pages.
    That box is in the top right, but mine is missing as well.
     
    Last edited by a moderator: Nov 15, 2012
  13. Caleb2476

    Caleb2476 Active Member

    Yeah that's what I'm referring too. I didn't know if I just didn't install it properly or what. But I see it enabled in my Chrome extensions so I don't know what the issue is.
     
  14. Do you have tampermonkey installed? Chrome may need it beacause script uses GM_setValue and GM_getValue (They are greasemonkey specific functions).
     
  15. Cowfin

    Cowfin Community Manager Staff Member

    The box doesn't appear for me on the dashboard or search pages, but it is there when I open up a HIT. Is it possible that you overlooked that?

    Also, visit Qualtrics.com and Surveymonkey.com and see if it shows up there.

    I'll post a few screenshots.
     
  16. Cowfin

    Cowfin Community Manager Staff Member

    Sorry for my crappy photo editing skills, but it should be in this location. (Red rectangle, I just blacked out all of my info.)

    [​IMG]
     
    Last edited by a moderator: Nov 16, 2012
  17. Caleb2476

    Caleb2476 Active Member

    Ah sweet this fixed it. Thanks a lot for your help everyone :)
     
  18. Zhillz

    Zhillz New Member

    Thanks, pretty useful.
     
  19. Tjololo

    Tjololo Pony Staff Member

    I know this is fairly old, and you may not even be checking this anymore, but:

    I've added the functionality for the auto-highlight, and fixed the conflict with expanded headers by removing it on all mturk pages. It requires two edits to the script, to two different lines.

    Line 31: if (!(regex for mturk).test(window.location.href)) {
    Line 34: idInner = "<input type='text' onmouseover='javascript:this.focus();this.select();' onmouseout='javascript:this.blur();' value='" + workerID + "' style='position:fixed;border:none;top:25px;z-index:10000;right:5px;padding:1px 3px;background:#33CC00;font-size:8px;color:white;' readonly/>"

    If anyone's interested :D

    I can't post the regex for mturk unfortunately, mturk forum is blocking me...but it's easy to figure out. I can PM it if necessary.
     
  20. ambereyes

    ambereyes User

    I really like it, but I wish the font were bigger.
     

Share This Page