Skip to content

Instantly share code, notes, and snippets.

View qufighter's full-sized avatar
💭
Earth day every day

Sam L qufighter

💭
Earth day every day
View GitHub Profile
@qufighter
qufighter / replaceStateTestPage.html
Created June 1, 2012 06:04
history.replaceState testcase HTML file by Matt Kruse
<!DOCTYPE html>
<html>
<head>
<title>replaceState Test for Greasemonkey</title>
<script>
window.addEventListener('DOMContentLoaded',function(){
window.history.replaceState(document.url, null);
},false);
</script>
</head>
@qufighter
qufighter / HistoryManager.js
Created May 30, 2012 15:43
FB HistoryManager + jsbeautifier
__d("HistoryManager", ["event-extensions", "function-extensions", "Cookie", "Env", "URI", "UserAgent", "copyProperties", "goOrReplace"], function (a, b, c, d, e, f) {
b('event-extensions');
b('function-extensions');
var g = b('Cookie'),
h = b('Env'),
i = b('URI'),
j = b('UserAgent'),
k = b('copyProperties'),
l = b('goOrReplace'),
m = {
// ==UserScript==
// @name Upload UserScript from GitHub to UserScripts
// @namespace vidzbigger.com
// @description Allows one to easily move user.js files to their userscripts.org profile. Publish updates with ease. All you have to do is add a link to your profile in your script description or project README file on github
// @include http://github.com/*/*
// @include http://gist.github.com/*
// @include http://userscripts.org/scripts/edit_src/*
// @include http://userscripts.org/scripts/new*
// @match http://github.com/*/*
// @match http://gist.github.com/*
@qufighter
qufighter / githubCompareBranchMaster.user.js
Created June 3, 2010 06:34 — forked from erikvold/githubCompareBranchMaster.user.js
This fork simply adds rudimentary google chrome support by adding @match and removing dependency on unsafe window when it is not available
// ==UserScript==
// @name GitHub Compare Branch w/ Master Link
// @namespace githubCompareBranchMaster
// @include http*://github.com/*/*
// @match http://github.com/*/*
// @datecreated 2010-06-02
// @lastupdated 2010-06-03
// @version 0.1
// @author Erik Vergobbi Vold
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// ==UserScript==
// @name Document Start Test
// @namespace vidzbigger.com
// @description This scrip tests document-start
// @include http://*
// @run-at document-start
// ==/UserScript==
GM_addStyle('body{display:none;}');