This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Socket.io Loopback Interface | |
// @namespace http://www.reddit.com/user/snaps_/ | |
// @description Adds a loopback capability to socketio sockets. Emitting a message with the event name prepended with "local:" will emit the message to the client-side socket listeners. | |
// @include http://tagpro-*.koalabeast.com:* | |
// @include http://tagpro-*.koalabeast.com/groups/* | |
// @include http://tangent.jukejuice.com:* | |
// @include http://tangent.jukejuice.com/groups/* | |
// @include http://maptest*.newcompte.fr:* | |
// @include http://maptest*.newcompte.fr/groups/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TagPro Example Bot | |
// @description Limited example bot for TagPro. | |
// @version 0.1 | |
// @grant none | |
// @include http://tagpro-maptest.koalabeast.com:* | |
// @include http://tangent.jukejuice.com:* | |
// @include http://*.newcompte.fr:* | |
// @author Cflakes, snaps_ | |
// @namespace http://www.reddit.com/user/snaps_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TagPro Flag Carrier Name | |
// @namespace http://www.reddit.com/user/snaps_/ | |
// @description Adds the name of the flag carrier next to the flags on the TagPro game UI. | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
// @version 0.1.3 | |
// @author snaps | |
// @downloadURL https://gist.github.com/chrahunt/03a399925e42f7c4f1e6/raw/tagpro-fc-status.user.js | |
// @include http://tagpro-*.koalabeast.com:* | |
// @include http://tangent.jukejuice.com:* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python2 | |
# From http://stackoverflow.com/a/21957017/1698058 | |
from http.server import SimpleHTTPRequestHandler, HTTPServer | |
import http.server | |
class CORSRequestHandler (SimpleHTTPRequestHandler): | |
def end_headers (self): | |
self.send_header('Access-Control-Allow-Origin', '*') | |
SimpleHTTPRequestHandler.end_headers(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TagPro Lap Time Tracker | |
// @namespace http://www.reddit.com/user/NewCompte | |
// @description Track lap times | |
// @include http://maptest.newcompte.fr:* | |
// @include http://maptest2.newcompte.fr:* | |
// @license WTFPL | |
// @author NewCompte, snaps | |
// @version 0.9.1 | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TagPro Example Offense Bot | |
// @description Limited example offense bot for TagPro. | |
// @version 0.1 | |
// @grant none | |
// @include http://tagpro-maptest.koalabeast.com:* | |
// @include http://tangent.jukejuice.com:* | |
// @include http://*.newcompte.fr:* | |
// @author snaps_ | |
// @namespace http://www.reddit.com/user/snaps_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var falafel = require('falafel'); | |
var escodegen = require('escodegen'); | |
var test = '(' + function() { | |
for (;;) true; | |
} + ')()'; | |
var output = falafel(test, function(node) { | |
node.update(escodegen.generate(node)); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(window, document, undefined) { | |
var Storage = {}; | |
window.Storage = Storage; | |
Storage.tracking = true; | |
Storage.track = function() { | |
Storage.tracking = !Storage.tracking; | |
if (Storage.tracking) { | |
console.log("Tracking storage performance."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Respawn Timer | |
// @description Show time remaining before a player respawns. | |
// @include http://tagpro-*.koalabeast.com:* | |
// @include http://maptest*.newcompte.fr:* | |
// @include http://tangent.jukejuice.com:* | |
// @downloadURL https://gist.github.com/chrahunt/b61ae05c3531c3d940f2/raw/spawn-timer.user.js | |
// @author snaps | |
// @license MIT | |
// @version 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* TagPro Neomacro | UserScript by Popcorn. | |
* ======================================== | |
* Are you tired of overly complex chat macro systems? Have you forgotten whether you bound "Yes" to I or U? | |
* This is Neomacro -- TagPro macro system that uses arrow keys, ctrl and 0 (zero) (you use WASD to control | |
* the game, don't you?) to create powerful and easy-to-remember macro codes. | |
* | |
* 1.0 update: Redesigned some macros, be sure to take a look. | |
* 1.1 update: Simplified code, added more comments | |
* 1.2 update: Goodbye, backspace and ctrl+something! |