Skip to content

Instantly share code, notes, and snippets.

View cuylerstuwe's full-sized avatar
Drinking covfefe.

Cuyler Stuwe cuylerstuwe

Drinking covfefe.
View GitHub Profile
// ==UserScript==
// @name rez async
// @namespace salembeats
// @version 2.02
// @description .
// @author Cuyler Stuwe (salembeats)
// @require https://gist.github.com/salembeats/2661fe710d1520a50cb0f8fa8b23d052/raw/d8174bc63c1c3fea038dbed542308d64375bfecb/mutil.library.user.js
// @require https://code.jquery.com/jquery-3.3.1.min.js
// @include *
// ==/UserScript==
// Holds the entire cache, as well as the result of the last cache lookup.
var selectorCache = {
cacheLookupResult: null
};
// Truthiness check for "existence" (Same as !!thing, except that it allows zero, empty string, and false to pass, since they exist).
const notNil = thing => thing !== null && thing !== undefined && thing !== NaN;
// Returns the cached selector lookup. Fills the cache first if it the selector isn't cached.
const c$ = selector => (
// ==UserScript==
// @name Return HIT before expiration.
// @namespace salembeats
// @version 1
// @description Returns HITs before they expire. Simple way to avoiding errors in private scripts which aren't written to handle expired HITs.
// @author Cuyler Stuwe (salembeats)
// @include https://worker.mturk.com/projects/*/tasks/*?assignment_id=*
// @require https://gist.github.com/salembeats/7c15b01ea4376bfd27ac4cf821d6a051/raw/31690e15d5abb787fc55f9c1351b90057de54480/magicJs.js
// @require https://gist.github.com/salembeats/5cc743a2d0c81e573c360131ec7a36f8/raw/8978d2dfed8829437a47a11006f6b2ab1fbcc5e8/mturk-hit-timer.library.user.js
// @require https://gist.github.com/salembeats/911fa615ea87bb077649adacf9436db9/raw/84d3adcf77b22766f946029fae8b0317d5ea38a4/mturk-frame-parent-interface.library.user.js
// ==UserScript==
// @name mTurkHitTimer Library
// @namespace salembeats
// @version 1.1
// @description Meant to be @required for scripts running in the top frame of an active HIT. Exposes secondsGiven() and secondsRemaining() methods.
// @author Cuyler Stuwe (salembeats)
// @include https://worker.mturk.com/projects/*/tasks/*?assignment_id=*
// @noframes
// ==/UserScript==
// ==UserScript==
// @name Escape to Spend Tonight Anywhere
// @namespace salembeats
// @version 1.00
// @description Just some toy script to test a library that plays HLS streams.
// @author Cuyler Stuwe (salembeats)
// @include *
// @noframes
// @require https://vjs.zencdn.net/7.1.0/video.js
// ==/UserScript==
@cuylerstuwe
cuylerstuwe / magicJs.js
Last active September 22, 2018 17:52
A simple library for describing "magic constants" inline, with their semantic name and value side-by-side.
// MagicJS 1.0
// by Cuyler Stuwe (salembeats)
//
// A simple library for describing "magic constants" inline, with their semantic name and value side-by-side.
// Not to be used in "hot routes" due to extra code overhead - Meant for code where concise readability is paramount.
//
// Originally hosted at: https://gist.github.com/salembeats
const MagicJS = (function() {
@cuylerstuwe
cuylerstuwe / hit-forker-local-copy.user.js
Last active December 6, 2018 15:25
Shrinkwrapped copy of the most current public version of Hit Forker, uploaded here to ensure compatibility with custom extensions. This tool was originally written by Kadauchi as a precursor to the Hit Finder which currently exists as a piece of MTS. It was forked by ThisPoorGuy and contains PandaCrazy integrations by SalemBeats and TurkerView i…
// ==UserScript==
// @name HIT Forker
// @version 1.0.5
// @description Monitors mturk.com for HITs
// @author ThisPoorGuy
// @icon http://nopurpose.org/stuff/avatars/Lj21396.gif
// @include https://worker.mturk.com/?finder_beta
// @include https://worker.mturk.com/?hit_forker
// @grant GM_log
// @grant GM_setClipboard
// ==UserScript==
// @name DO YOU DARE INSTALL AND TRY?!
// @namespace salembeats
// @version 1.00
// @description .
// @author Cuyler Stuwe (salembeats)
// @include https://turkerhub.com/threads/*/*
// ==/UserScript==
[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]][([]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[!![]+!![]+!![]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[+!![]+[+[]]]+([][[]]+[])[+!![]]+(![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+[]]+([]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[!![]+!![]+!![]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+([![]]+[][[]])[+!![]+[+[]]]+(![]+[])[!![]+!![]]+(![]+[])[!![]+!![]]])[+!![]+[+[]]]+(!![]+[])[+!![]]]((!![]+[])[+!![]]+(!![]+[])[!![]+!![]+!![]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!![]]+([][[]]+[])[+!![]]+(![]+[][(![]+[])[+[]]+([![]
// ==UserScript==
// @name SOJM
// @namespace salembeats
// @version 2.16
// @description Compare your earnings to the crowd, to tell whether it's "Slow, Or Just Me?"
// @author Cuyler Stuwe (salembeats)
// @include https://worker.mturk.com/dashboard*
// ==/UserScript==
const globals = {
// ==UserScript==
// @name /r/mturk Junk Filter
// @namespace salembeats
// @version 1.00
// @description Helps you dodge a good amount of repetitive junk posts (which could be solved in ~5 seconds with a simple Google search) that are frequently repeated on /r/mturk.
// @author Cuyler Stuwe (salembeats)
// @include https://www.reddit.com/r/mturk/
// ==/UserScript==
function blacklistedPostsFrom(postsArray) {