Worker ID Copy/Paste

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

  1. sasquatch

    sasquatch User

    Joined:
    Oct 19, 2012
    Messages:
    4,446
    Likes Received:
    0
    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
     
    #1 sasquatch, Oct 21, 2012
    Last edited by a moderator: Oct 21, 2012
  2. Flora

    Flora Admin
    Staff Member

    Joined:
    Jul 16, 2012
    Messages:
    70,597
    Likes Received:
    18,623
    Neat feature! Thanks!
     
  3. sasquatch

    sasquatch User

    Joined:
    Oct 19, 2012
    Messages:
    4,446
    Likes Received:
    0
    No problem, hope it helps!
     
  4. sasquatch

    sasquatch User

    Joined:
    Oct 19, 2012
    Messages:
    4,446
    Likes Received:
    0
    added https addresses at qualtrics
     
  5. ofnoaccout

    ofnoaccout New Member

    Joined:
    Jan 28, 2012
    Messages:
    1
    Likes Received:
    0
    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

    Joined:
    Oct 19, 2012
    Messages:
    4,446
    Likes Received:
    0
    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

    Joined:
    Oct 19, 2012
    Messages:
    4,446
    Likes Received:
    0
    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

    Joined:
    Sep 29, 2012
    Messages:
    552
    Likes Received:
    0
  9. naisybee

    naisybee - Don't Blink -

    Joined:
    Oct 3, 2012
    Messages:
    3,200
    Likes Received:
    0
    love it!!!!!!!!
     
  10. Caleb2476

    Caleb2476 Active Member

    Joined:
    Oct 28, 2012
    Messages:
    44
    Likes Received:
    0
    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

    Joined:
    Sep 15, 2012
    Messages:
    474
    Likes Received:
    0
    It's on the top right corner, orange color, under "sign out".
     
  12. Cowfin

    Cowfin Community Manager
    Staff Member

    Joined:
    Sep 12, 2012
    Messages:
    3,737
    Likes Received:
    0
    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.
     
    #12 Cowfin, Nov 15, 2012
    Last edited by a moderator: Nov 15, 2012
  13. Caleb2476

    Caleb2476 Active Member

    Joined:
    Oct 28, 2012
    Messages:
    44
    Likes Received:
    0
    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. ThirdClassIntMasterTurker

    Joined:
    Sep 8, 2012
    Messages:
    86
    Likes Received:
    0
    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

    Joined:
    Sep 12, 2012
    Messages:
    3,737
    Likes Received:
    0
    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

    Joined:
    Sep 12, 2012
    Messages:
    3,737
    Likes Received:
    0
    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]
     
    #16 Cowfin, Nov 16, 2012
    Last edited by a moderator: Nov 16, 2012
  17. Caleb2476

    Caleb2476 Active Member

    Joined:
    Oct 28, 2012
    Messages:
    44
    Likes Received:
    0
    Ah sweet this fixed it. Thanks a lot for your help everyone :)
     
  18. Zhillz

    Zhillz New Member

    Joined:
    Nov 19, 2012
    Messages:
    2
    Likes Received:
    0
    Thanks, pretty useful.
     
  19. Tjololo

    Tjololo Pony
    Staff Member

    Joined:
    Jun 14, 2013
    Messages:
    13,720
    Likes Received:
    105
    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

    Joined:
    Oct 24, 2013
    Messages:
    159
    Likes Received:
    0
    I really like it, but I wish the font were bigger.
     

Share This Page