Skip to content

Instantly share code, notes, and snippets.

@karacas
Last active October 21, 2016 19:48
Show Gist options
  • Save karacas/76b56510a6f84a3a1c1b6d69aa864be7 to your computer and use it in GitHub Desktop.
Save karacas/76b56510a6f84a3a1c1b6d69aa864be7 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name TMS_9gagKrc
// @namespace http://tampermonkey.net/
// @version 0.30
// @description 9Gag styles
// @author Karacas
// @match *://9gag.com/*
// @grant none
// @updateURL https://gist.githubusercontent.com/karacas/76b56510a6f84a3a1c1b6d69aa864be7/raw
// @downloadURL https://gist.githubusercontent.com/karacas/76b56510a6f84a3a1c1b6d69aa864be7/raw
// ==/UserScript==
(function() {
//
var sheet = window.document.styleSheets[0];
sheet.insertRule('#sidebar-content, .badge-sticky-button {display: none !important;}');
sheet.insertRule('.share.right {display: none !important;}');
sheet.insertRule('header#top-nav {position: relative !important;}');
sheet.insertRule('body {background-color: #000 !important;}');
sheet.insertRule('a {color: #fff !important;}');
sheet.insertRule('article {border: none !important;}');
sheet.insertRule('article a {font-weight: lighter;}');
sheet.insertRule('.page {width: 100% !important;}');
sheet.insertRule('.main-wrap {margin-left: 20% !important;}');
sheet.insertRule('.overlay-scroll-container {display: none !important; pointer-events: none !important;}');
sheet.insertRule('img.badge-item-img {width: 460px !important;}');
sheet.insertRule('.badge-entry-collection {opacity:0.5 !important;}');
sheet.insertRule('.badge-entry-collection:hover {opacity:1 !important;}');
sheet.insertRule('.btn-vote {overflow: hidden; zoom: 0.7; opacity: 0.5;}');
sheet.insertRule('.comment-entry .info .label { font-weight: 900 !important; font-size: 26px !important; vertical-align: middle !important;}');
sheet.insertRule('.badge-comment a {color: #09f !important;}');
sheet.insertRule('.comment-embed > div > div {border-bottom: solid 1px #ccc; margin-bottom: 20px; margin-top: 20px; }');
//
//REMOVE ICON
var link = document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = 'http://www.stackoverflow.com/favicon.ico';
document.getElementsByTagName('head')[0].appendChild(link);
document.title = 'Stack Overflow : P'
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment