Turkopticon as a userscript

Discussion in 'Scripts' started by Mikuchan, May 2, 2013.

  1. Mikuchan

    Mikuchan User

    Joined:
    Apr 16, 2013
    Messages:
    235
    Likes Received:
    0
    I found the script from the Turkopticon add-on repo, and decided to edit it a bit to make it faster.

    If anyone would like to use the script it can be found here: https://userscripts.org/scripts/show/166211

    What makes this script different from the official release?

    The official add-on works by taking control of the page until Turkopticon has finished loading. At peak times of the day the load times can be really slow. The purpose of this script was to bypass that problem. When we turk we want mturk to respond right away, or else we could miss out on a great hit. With this script it does not interfere with the page loading. This script operates in the background, and caches responses when it can. The main goal is to make the script transparent from mturk’s loading time so that we can accept hits faster; find hits faster, without the sacrifice of TO.


    How does the cache work?

    The way the cache works is after someone visits a page, on the next request that page is served from the cache. Our cache server is "turkopticon.istrack.in". If a page is not cached or needs revalidation it will contact the origin server "turkopticon.differenceengines.com" and create the cache. The load times will be slow on the first request, and on revalidation. It's slow because the origin server usually is under high load.

    An example of a cached page is here: http://turkopticon.istrack.in/A3MI6MIUNWCR7F

    You may have noticed you didn't have to sign in to see the review. The reviews are publicly available and it's like this because reading reviews through the origin server takes too long. In order for us all to see the reviews when we want to see them NOW the data has been cached and made publicly available. An account does have to be used so logging out has been disabled. To respect as much privacy as we can reading the accounts reviews and editing settings has been disabled. The email address at the top of the page has also been removed. If this is used for good as intended, there should be no problem. The data will be cached for 7 days. If we need to see the latest review data there is an option at the top of the page to "purge" the page, and get a new one from the origin.
     
    #1 Mikuchan, May 2, 2013
    Last edited by a moderator: May 6, 2013
  2. elt

    elt User

    Joined:
    Feb 19, 2013
    Messages:
    2,300
    Likes Received:
    139
    got the link from the great hits thread the other day.
    just now disabled the extension and installed the script.
    this does seem faster & quieter.

    I am on a slower dialup most of the time and the lag at the end of
    a search page was really noticeable with the extension. no lag now!
    early AM EST. have to try later today

    thanks for working on this.
     
  3. Mikuchan

    Mikuchan User

    Joined:
    Apr 16, 2013
    Messages:
    235
    Likes Received:
    0
    A few vulnerabilities have been patched. A person was able to change a persons password by requesting the page

    http://turkopticon.istrack.in/reg/change_password

    They were also able to set display names

    http://turkopticon.istrack.in/reg/set_display_name

    Both have been patched. I searched the site for more vulnerabilities that could hurt the public cache, and I believe all is good now.

    2 people's account has had their password changed. If you were affected by this please reset your password/recover the password. It is my fault for not thoroughly looking at the site before putting up restrictions to site directories. I am sorry for my mistake.

    Logging in should be unnecessary now due to a few backend changes. With this change the login session is no longer passed to each client; if someone wanted to steal the login cookie and login to the origin site, it is no longer possible.
     
    #3 Mikuchan, May 3, 2013
    Last edited by a moderator: May 5, 2013
  4. turkingalone

    Joined:
    Jul 27, 2013
    Messages:
    597
    Likes Received:
    0
    Does it work on Google chrome?
     

Share This Page