Created
November 8, 2012 21:44
-
-
Save notpushkin/4041884 to your computer and use it in GitHub Desktop.
Everlasting Summer Theme
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 Google Everlasting Summer Theme | |
// @namespace http://iichan.hk/ | |
// @description To be used with Everlasting Summer Wallpaper. | |
// @author Ale110 | |
// @homepage http://iichan.hk/b/res/2531714.html | |
// @include http://www.google.com/ | |
// @include https://www.google.com/ | |
// @include http://www.google.com/webhp* | |
// @include https://www.google.com/webhp* | |
// @include https://encrypted.google.com/* | |
// ==/UserScript== | |
(function() { | |
LOGO = "http://i.imgur.com/rtbcb.png"; | |
// Default: white Google logo on transparent background | |
BACKGROUND = "http://i.imgur.com/XVXRc.jpg"; | |
// Default: Everlasting Summer wallpaper cut | |
// for Ubuntu Unity 11.04+ w/sidebar. | |
// You'd probably like to change this 'cos it is different on each computer | |
document.body.style.background = "url("+BACKGROUND+")"; // BUG: криво, если поставить center | |
document.getElementById('hplogo').style.background = "url("+LOGO+")"; | |
document.getElementById("hplogo").style.backgroundSize = "275px 95px"; | |
document.getElementById("hplogo").style.width = "275px"; | |
document.getElementById("hplogo").style.height = "95px"; | |
document.getElementById("hplogo").children[0].style.display = "none"; // "на русском" | |
document.body.classList.add("-th-home"); // no search performed yet | |
css = "body.-th-home a,#gbi4t { color: #fff !important; } " | |
+ "body:not(.-th-home) #main { background: none repeat scroll 0 0 white; } " | |
+ "body:not(.-th-home) #gbx1, #gbx2 { background: none transparent !important; } "; | |
// TODO: search page logo shall be white (or not?) | |
var node = document.createElement("style"); | |
node.type = "text/css"; | |
node.appendChild(document.createTextNode(css)); | |
document.getElementsByTagName('head')[0].appendChild(node); | |
document.getElementById('gbqfq').onkeyup = (function(){ | |
document.body.classList.remove("-th-home"); | |
}); | |
})(); |
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 VK Everlasting Summer Theme | |
// @namespace http://iichan.hk/ | |
// @description To be used with Everlasting Summer Wallpaper. | |
// @author Ale110 | |
// @homepage http://iichan.hk/b/res/2531714.html | |
// @include http://vk.com/* | |
// @include https://vk.com/* | |
// @include http://*.vk.com/* | |
// @include https://*.vk.com/* | |
// ==/UserScript== | |
(function(){ | |
document.body.style.background = "url(http://i.imgur.com/XVXRc.jpg) fixed"; | |
// BUG: криво, если поставить center | |
document.getElementById("page_layout").style.background = "white"; | |
semi = document.createElement("div"); | |
document.body.appendChild(semi); | |
semi.innerHTML = '<div style="position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; padding-left: 50%;"><div style="top: 0px; bottom: 0px; height: 100%; position: relative; background: none repeat scroll 0px 0px rgba(255, 255, 255, 0.6); margin-left: -413px; width: 824px;"> </div></div>'; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment