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== | |
// @id github.com-24a4aabb-e0ba-a54c-befe-2eb0a555de9e@scriptish | |
// @name Better Github Commit Pages | |
// @version 1.0 | |
// @namespace erikvold-github | |
// @author Erik Vold | |
// @description | |
// @include https://github.com/*/commit/* | |
// @grant GM_xpath | |
// @run-at document-end |
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== | |
// @id www.attackmagazine.com-4bb9e0c0-f0bc-8d47-a540-d7d92ddc020d@erikvold | |
// @name Wideer Attack Magazine | |
// @version 1.0 | |
// @namespace erikvold | |
// @author Erik Vold | |
// @description | |
// @include http://www.attackmagazine.com/* | |
// @run-at document-end | |
// ==/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== | |
// @id twitter.com-5b386b3d-0070-1b41-8d9d-843c35933093@erikvold | |
// @name Tweet Deleter | |
// @version 1.0 | |
// @namespace erikvold | |
// @author Erik Vold | |
// @description | |
// @include https://twitter.com/erikvold | |
// @run-at document-load | |
// ==/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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body> | |
<canvas id="mycanvas" width="1" height="1"></canvas> | |
<script type="text/javascript"> | |
var canvas = document.getElementById('mycanvas'); | |
alert(canvas.toDataURL()); | |
</script> | |
</body> |
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== | |
// @id github.com-ca644dfe-7ffa-ee4f-ae5a-79160b99a673@scriptish | |
// @name Github Big Contributor Rankings | |
// @version 1.0 | |
// @namespace | |
// @author Erik Vold | |
// @description | |
// @include https://github.com/* | |
// @run-at document-start | |
// @grant GM_addStyle |
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
body { | |
background-color: black; | |
color: white; | |
} |
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== | |
// @id voldzilla-inverter@erikvold.com | |
// @name Voldzilla Inverter | |
// @version 1.0 | |
// @namespace erikvold-work | |
// @author Erik Vold | |
// @grant GM_addStyle | |
// @include http://work.erikvold.com/* | |
// @run-at document-end | |
// ==/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
exports.testButtonToOpenXToClose = function(assert, done) { | |
const { Sidebar } = require('sdk/ui/sidebar'); | |
let testName = 'testButtonToOpenXToClose'; | |
let title = testName; | |
let url = 'data:text/html;charset=utf-8,' + testName; | |
let window = getMostRecentBrowserWindow(); | |
let sidebar = Sidebar({ | |
id: testName, |
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
const { Class } = require("sdk/core/heritage"); | |
const { Disposable } = require('sdk/core/disposable'); | |
let Ds = Class({ | |
implements: [ Disposable ], | |
setup: function() {}, | |
dispose: function() { | |
console.log('disposed!') |
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
'use strict'; | |
const { data } = require('sdk/self'); | |
// Using the redirect module from the pathfinder package https://github.com/erikvold/addon-pathfinder/blob/master/lib/redirect.js | |
const { Redirect } = require('pathfinder/redirect'); | |
Redirect({ | |
from: "http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js", | |
to: 'data:text/javascript;charset=utf-8,' + encodeURIComponent(data.load('ajax/libs/jquery/2.0.2/jquery.min.js')) |