Skip to content

Instantly share code, notes, and snippets.

@jbottigliero
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save jbottigliero/7bbafa671a428dd499ca to your computer and use it in GitHub Desktop.

Select an option

Save jbottigliero/7bbafa671a428dd499ca to your computer and use it in GitHub Desktop.
bitbucket-fluid-fix
// 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"}})();
@jbottigliero
Copy link
Copy Markdown
Author

Updated to include a fix for the dashboard-overview page.

@jbottigliero
Copy link
Copy Markdown
Author

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