Last active
August 29, 2015 14:07
-
-
Save aycabta/8dffe64a56f9e7b3af59 to your computer and use it in GitHub Desktop.
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 comico header drop off | |
// @namespace http://www.comico.jp/detail.nhn?titleNo=47 | |
// @version 0.1.1 | |
// @description hi | |
// @include /^https?://www.comico.jp/ | |
// @copyright 2014+, You | |
// ==/UserScript== | |
(function() { | |
function beStylish(str) { | |
var sheet; | |
var greatestest = document.getElementById('greatestest-css'); | |
if (!greatestest) { | |
var style = document.createElement('style'); | |
style.setAttribute('id', 'greatestest-css'); | |
style.type = "text/css"; | |
var head = document.getElementsByTagName('head')[0]; | |
head.appendChild(style); | |
sheet = style.sheet; | |
} else { | |
sheet = greatestest.sheet; | |
} | |
sheet.insertRule(str.replace(/\n/g, ""), sheet.cssRules.length); | |
} | |
beStylish(".m-global-comico-header.m-global-comico-header--fixed {" + | |
" position: relative !important;" + | |
" margin-bottom: 30px;" + | |
"}"); | |
beStylish(".body--show-fixed-header {" + | |
" padding-top: 0px !important;" + | |
"}"); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment