Skip to content

Instantly share code, notes, and snippets.

@michaelmob
michaelmob / Phantom-Sequence.js
Created September 13, 2015 04:12
Phantomjs functions in a sequence instead of the awful nesting.
var Sequence = function() {
this.iter = 0;
this.funcs = [];
this.waitFor = function(testFx, onReady, onTimeOut, timeOutMillis) { // Modified!!!
/* https://github.com/ariya/phantomjs/blob/master/examples/waitfor.js
view github page for credits */
var maxtimeOutMillis = timeOutMillis ? timeOutMillis : 3000, //< Default Max Timout is 3s
start = new Date().getTime(),
condition = false,
@michaelmob
michaelmob / StartPage Bangs
Last active November 4, 2023 11:18
Adds !s to StartPage, like DDG
// ==UserScript==
// @name StartPage Bangs
// @namespace http://tarkus.co/
// @version 0.1
// @description Adds !s to StartPage, like DDG
// @match https://startpage.com/*
// @run-at document-start
// ==/UserScript==
// Bangs
@michaelmob
michaelmob / Steam's Link Filter Auto-Continue
Last active August 29, 2015 14:04
Instead of clicking "proceed to website" on Steam's link filter, this Userscript automatically redirects you.