Skip to content

Instantly share code, notes, and snippets.

@aycabta
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aycabta/8dffe64a56f9e7b3af59 to your computer and use it in GitHub Desktop.
Save aycabta/8dffe64a56f9e7b3af59 to your computer and use it in GitHub Desktop.
// ==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