Created
March 28, 2015 23:17
-
-
Save deeenes/036d8aadd3f95fb6c4ef to your computer and use it in GitHub Desktop.
removes suggestions from kinja and makes all headers equal width
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 cleankinja | |
// @namespace cleankinja | |
// @include http://*.kinja.com/* | |
// @version 1.0.0 | |
// @grant none | |
// ==/UserScript== | |
var newcss = '.thumb-inset {display: none!important;}\ | |
.referenced-item {display: none!important}\ | |
.row.package {border-right-width: 0px!important;}' | |
var style = window.document.createElement('style'); | |
var head = document.head || document.getElementsByTagName('head')[0] | |
style.type = 'text/css'; | |
if (style.styleSheet){ | |
style.styleSheet.cssText = newcss; | |
} else { | |
style.appendChild(document.createTextNode(newcss)); | |
} | |
head.appendChild(style); | |
var m6 = document.getElementsByClassName('medium-6'); | |
while (m6.length > 0) { | |
m6[0].className = m6[0].className.replace('medium-6', 'large-12'); | |
} | |
var m9 = document.getElementsByClassName('medium-9'); | |
while (m9.length > 0) { | |
m9[0].className = m9[0].className.replace('medium-9', 'large-12'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment