Created
July 3, 2012 06:30
-
-
Save makotoworld/3038076 to your computer and use it in GitHub Desktop.
Bitbucket Issue Customize Page
This file contains hidden or 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 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