Last active
August 29, 2015 14:01
-
-
Save jbottigliero/7bbafa671a428dd499ca to your computer and use it in GitHub Desktop.
bitbucket-fluid-fix
This file contains 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
// Moves the BitBucket Activity Stream out of the ".sidebar" | |
(function(){ | |
var o = document.getElementById('dashboard-overview') || document.getElementById('repo-overview') || document.getElementById('profile-tab-content'); | |
if (!o) return; | |
a = o.querySelector('.sidebar'), | |
m = o.firstElementChild; | |
o.insertBefore(a, m); | |
a.classList.remove('sidebar'); | |
if (o.id === 'profile-tab-content') { | |
m.style.position = 'absolute'; | |
m.style.right = '5%'; | |
m.style.top = 0; | |
m.style.width = '50%'; | |
} | |
})(); | |
// Bookmarklet | |
javascript:(function(){var e=document.getElementById("dashboard-overview")||document.getElementById("repo-overview")||document.getElementById("profile-tab-content");if(!e)return;a=e.querySelector(".sidebar"),m=e.firstElementChild;e.insertBefore(a,m);a.classList.remove("sidebar");if(e.id==="profile-tab-content"){m.style.position="absolute";m.style.right="5%25";m.style.top=0;m.style.width="50%25"}})(); |
Updated to include fix for profile pages.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to include a fix for the dashboard-overview page.