Last active
August 29, 2015 14:22
-
-
Save ddevault/083b4d0f34d1a55eba1b to your computer and use it in GitHub Desktop.
Revert Linux icons on Steam back to tux
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 Linux Icon for Steam | |
// @namespace sircmpwn.com | |
// @include *store.steampowered.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
// Consider this file licensed under the terms of the WTFPL. | |
document.addEventListener("DOMContentLoaded", function() { | |
var fa = document.createElement('link'); | |
fa.setAttribute('rel', 'stylesheet'); | |
fa.setAttribute('type', 'text/css'); | |
fa.setAttribute('href', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'); | |
document.head.appendChild(fa); | |
var items = document.querySelectorAll(".platform_img.linux"); | |
for (var i = 0; i < items.length; i++) { | |
items[i].className = "fa fa-linux"; | |
} | |
var style = document.createElement("style"); | |
style.innerHTML = ".fa-linux{color:white;display:inline-block;width:20px;height:20px;position:relative;" + | |
"top:2px;left:2px;font-size:12pt;}" + | |
".main_cluster_content .fa-linux{top:-4px;}" + | |
".tab_content .fa-linux{color:#5B616C;}" + | |
".game_area_purchase_platform .fa-linux{top:-4px}"; | |
document.head.appendChild(style); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment