Skip to content

Instantly share code, notes, and snippets.

@erikvold
Created January 14, 2010 06:25
Show Gist options
  • Save erikvold/276945 to your computer and use it in GitHub Desktop.
Save erikvold/276945 to your computer and use it in GitHub Desktop.
Small tweaks for the Mozilla Labs Jetpack home page.
// ==UserScript==
// @name Jetpack Home Page Tweaks
// @author Erik Vold
// @namespace jetpackHPTweaks
// @include https://jetpack.mozillalabs.com/
// @include https://jetpack.mozillalabs.com/index.html
// @include https://jetpack.mozillalabs.com/index.html?*
// @include https://jetpack.mozillalabs.com/index.html#*
// @version 0.1
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html
// @datecreated 2010-01-13
// @lastupdated 2010-01-13
// @description Small tweaks for the Mozilla Labs Jetpack home page.
// ==/UserScript==
(function(){
var leftSide=document.evaluate("//td[@class='leftSidebar']",document,null,9,null).singleNodeValue;
if(!leftSide) return;
var container=document.createElement("div");
for(var i=leftSide.children.length-1; i>=0; i--){
container.insertBefore(leftSide.children[i],container.firstChild);
}
leftSide.innerHTML='';
leftSide.appendChild(container);
GM_addStyle((<><![CDATA[
body, h1, h2, h3, h4, .newsBg, .greyBg, .introBg, .downloadBg, .video, .news, .links, .title {
font-family:auto;
}
#menu{
margin:-135px auto 20px;
}
h2{
margin-top:12px;
}
.header{
margin-top:-60px;
}
.leftSidebar div {
-moz-border-radius-bottomleft:0.25em;
-moz-border-radius-bottomright:0.25em;
-moz-border-radius-topleft:0.25em;
-moz-border-radius-topright:0.25em;
-moz-box-shadow:2px 2px 6px rgba(0, 0, 0, 0.3);
background-color:#FFFFFF;
padding:10px 20px;
text-align:left;
margin-top:0;
}
.leftSidebar div, .video{
margin-top:0;
}
.leftSidebar{
padding-right:0;
}
.introBg {
font-family:auto;
padding:0 20px;
margin-top:0;
}
.greyBg{
padding:10px 40px;
}
.mainLink {
margin:20px auto 0;
padding:0;
}
]]></>).toString());
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment