Skip to content

Commit

Permalink
Moar js.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjl committed Oct 10, 2012
1 parent c9b678b commit b01aaca
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions dotcss/bitbucket.org.css
@@ -0,0 +1 @@
#invite-repo-box {display: none;}
3 changes: 3 additions & 0 deletions dotcss/goodreads.com.css
@@ -0,0 +1,3 @@
#featured_polls, #quote_of_the_day {
display: none;
}
15 changes: 15 additions & 0 deletions dotjs/github.com.js
Expand Up @@ -54,4 +54,19 @@ $(function() {
if (window.location.hash === '#reviewing') { if (window.location.hash === '#reviewing') {
$('a#toggle-merges-button').click(); $('a#toggle-merges-button').click();
} }

if ($('.view-pull-request').length) {
var url = $('table.commits tr.commit .commit-meta a').attr('href');
var parts = url.split('/');
var repo = 'git://github.com/' + parts[1] + '/' + parts[2] + '.git';
$('#pull-head').append('<textarea id="goddamned-repo-url">' + repo + '</textarea>');
$('#goddamned-repo-url').css('width', '897px')
.css('height', '20px')
.css('border', '1px solid #ccc')
.css('padding', '5px 0px 3px 4px')
.css('margin', '3px 0px 5px 8px')
.css('font-size', '18px')
.css('color', '#555')
.css('border-radius', '3px');
}
}); });

0 comments on commit b01aaca

Please sign in to comment.