/*
* @title TYJ no footer
* @description hidden footer on tonarinoyj.jp
* @include http://tonarinoyj.jp/manga/*
* @license MIT License http://opensource.org/licenses/MIT
* @javascript_url
*/
// UserScript
// https://gist.github.com/noromanba/e0b077f9baa25b5f9d8c
(function () {
if (!/tonarinoyj\.jp$/.test(location.hostname) ||
!/manga\/\w+\/[\w-]+/.test(location.pathname) ||
document.head.querySelector('script[src$="swfobject.js"]')) {
return;
}
var addStyle = (function () {
var parent = document.head || document.body || document.documentElement;
var style = document.createElement('style');
style.type = 'text/css';
parent.appendChild(style);
return function (css) {
style.appendChild(document.createTextNode(css + '\n'));
};
})();
// <footer id="footer">
addStyle('#footer { display: none; }');
})();