311e044593af

Moar js.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 10 Oct 2012 16:25:34 -0400
parents e484a4d62a7b
children 5c3e382e21ae
branches/tags (none)
files dotcss/bitbucket.org.css dotcss/goodreads.com.css dotjs/github.com.js

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dotcss/bitbucket.org.css	Wed Oct 10 16:25:34 2012 -0400
@@ -0,0 +1,1 @@
+#invite-repo-box {display: none;}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dotcss/goodreads.com.css	Wed Oct 10 16:25:34 2012 -0400
@@ -0,0 +1,3 @@
+#featured_polls, #quote_of_the_day {
+    display: none;
+}
--- a/dotjs/github.com.js	Fri Oct 05 11:12:29 2012 -0400
+++ b/dotjs/github.com.js	Wed Oct 10 16:25:34 2012 -0400
@@ -54,4 +54,19 @@
     if (window.location.hash === '#reviewing') {
         $('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');
+    }
 });