Skip to content

Instantly share code, notes, and snippets.

@maripo
Created October 29, 2012 10:39
Show Gist options
  • Save maripo/3972893 to your computer and use it in GitHub Desktop.
Save maripo/3972893 to your computer and use it in GitHub Desktop.
Enhance the top logo of github:gist
// ==UserScript==
// @name github_gist_logo
// @namespace maripo.org
// @description Enhance the top logo of github:gist
// @include https://gist.github.com/*
// @version 1
// ==/UserScript==
(function()
{
var logo = document.body.querySelector('div.logo');
if (!logo) return;
var linkGithub = document.createElement('A');
linkGithub.href = 'https://github.com/';
with (linkGithub.style)
{
position = 'absolute';
left = '0';
right = '0';
width = '108px';
height = '45px';
zIndex = 10;
}
logo.appendChild(linkGithub);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment