To set up the helper script, we need to run it on the background page for the extension. Here's one way to do that:
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 StackEdit Image Extension | |
// @namespace http://chri.sh/ | |
// @version 0.4.1 | |
// @description Add image-pasting capability to StackEdit editor. | |
// @author chrahunt | |
// @match https://stackedit.io/editor | |
// @run-at document-end | |
// @grant none | |
// @downloadURL https://gist.github.com/chrahunt/c27686b095a390c26ff8/raw/se-image-paste.user.js |
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 Follow Helper | |
// @namespace http://reddit.com/user/snaps_ | |
// @description Follow the Flag Carrier, or someone else, automatically! | |
// @include http://tagpro-*.koalabeast.com:* | |
// @include http://maptest*.newcompte.fr:* | |
// @require https://gist.github.com/chrahunt/4843f0258c516882eea0/raw/loopback.user.js | |
// @downloadURL https://gist.github.com/chrahunt/c1fcc842a96ef0e22b45/raw/tagpro-follow-helper.user.js | |
// @license MIT | |
// @author 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 Don't Kick Me, tagpro! | |
// @description Prevent getting kicked due to being AFK (or busy) on | |
// map test server. | |
// @include http://tangent.jukejuice.com:* | |
// @author snaps | |
// @license MIT | |
// @version 0.1.0 | |
// ==/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 Team Switcher | |
// @namespace http://reddit.com/user/snaps_ | |
// @description Switch Teams Fast | |
// @include http://tagpro-*.koalabeast.com:* | |
// @include http://maptest*.newcompte.fr:* | |
// @include http://tangent.jukejuice.com:* | |
// @downloadURL https://gist.github.com/chrahunt/0212e8517a7e6974eeb0/raw/tagpro-team-switcher.user.js | |
// @resource switch_icon http://i.imgur.com/aryEWao.png | |
// @resource switch_back_icon http://i.imgur.com/m5H2595.png |
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 Stabilizer Bot Trainer | |
// @description Stabilize your ball perfectly on a square. | |
// @version 0.1 | |
// @include http://tagpro-maptest.koalabeast.com:* | |
// @include http://tangent.jukejuice.com:* | |
// @include http://*.newcompte.fr:* | |
// @require https://raw.githubusercontent.com/karpathy/reinforcejs/master/lib/rl.js | |
// @require https://github.com/eligrey/FileSaver.js/raw/master/FileSaver.min.js | |
// @require https://gist.github.com/chrahunt/4843f0258c516882eea0/raw/loopback.user.js |
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 _schema = { | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"id": "http://jsonschema.net", | |
"type": "array", | |
"items": { | |
"id": "http://jsonschema.net/user", | |
"type": "object", | |
"properties": { | |
"_id": { | |
"id": "http://jsonschema.net/user/_id", |
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 dt = (1.0 / 60); | |
var damping = 0.5; | |
// Scale between Box2d physics and tagpro physics. | |
var scale = 100; | |
// Damping factor. | |
var d = 1 - damping * dt; | |
/** | |
* Get predicted velocity along one axis. | |
* @param {number} v0 - Initial velocity | |
* @param {number} a - Acceleration |
The Voronoi tessellation shows the closest point on the plane for a given set of points. This example updates the Voronoi diagram in response to mouse interaction! Colors by Cynthia Brewer; algorithm by Steven Fortune; implementation based on work by Nicolas Garcia Belmonte; interaction inspired by Raymond Hill.
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 Smirk Helper | |
// @include http://tagpro-*.koalabeast.com:* | |
// @include http://maptest*.newcompte.fr:* | |
// @include http://tangent.jukejuice.com:* | |
// @author snaps | |
// @license MIT | |
// @version 0.1.0 | |
// ==/UserScript== |