Skip to content

Instantly share code, notes, and snippets.

@benburton
Created June 7, 2012 16:51
Show Gist options
  • Save benburton/2890012 to your computer and use it in GitHub Desktop.
Save benburton/2890012 to your computer and use it in GitHub Desktop.
Fab.com - Remove signup blocker
// ==UserScript==
// @name Fab.com - Remove signup blocker
// @match http://fab.com/*
// @match http://www.fab.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// ==/UserScript==
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
script.addEventListener('load', function() {
var script = document.createElement("script");
script.textContent = "(" + callback.toString() + ")();";
document.body.appendChild(script);
}, false);
document.body.appendChild(script);
}
function main() {
$(document).ready(function() {
$(".newLoginProcess").hide();
$(".modal-bg").hide();
});
}
addJQuery(main);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment