Created
October 29, 2012 10:39
-
-
Save maripo/3972893 to your computer and use it in GitHub Desktop.
Enhance the top logo of github:gist
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
// ==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