Skip to content

Instantly share code, notes, and snippets.

@makotoworld
Created July 3, 2012 06:30
Show Gist options
  • Save makotoworld/3038076 to your computer and use it in GitHub Desktop.
Save makotoworld/3038076 to your computer and use it in GitHub Desktop.
Bitbucket Issue Customize Page
// ==UserScript==
// @name Bitbucket Issue Customize Page
// @namespace http://makotoworld.hatenablog.com/
// @description issue page customize.
// @include http://bitbucket.org/*/*/issues?status=new
// @include https://bitbucket.org/*/*/issues?status=new
// @version 0.1.0
// ==/UserScript==
// @author Makoto Nozaki
// @history [2012-07-03] 0.1.0 initial version
// ==/UserScript==
function addJQuery(callback) {
var script = document.createElement("script");
script.setAttribute("src", "https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/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() {
$(".state").hide();
$(".date").hide();
}
addJQuery(main);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment