skynet/userscripts/style-webtoons.js

32 lines
643 B
JavaScript
Raw Normal View History

2023-07-01 14:58:28 -05:00
// ==UserScript==
// @name Style-Webtoons
// @namespace code.sitosis.com
2023-07-01 15:45:12 -05:00
// @version 1.1
2023-07-01 14:58:28 -05:00
// @description Style Webtoons
// @author rudism
2023-07-01 15:40:40 -05:00
// @match https://m.webtoons.com/*
2023-07-01 14:58:28 -05:00
// @grant none
// @run-at document-end
// ==/UserScript==
function injectStyle(css) {
var style = document.createElement('style');
style.innerHTML = css;
var body = document.getElementsByTagName('body');
if(body.length > 0) {
body[0].appendChild(style);
}
}
(function () {
'use strict';
injectStyle(`
2023-07-01 15:40:40 -05:00
#_viewer {
height: auto !important;
}
#_viewer .flick-ct img {
2023-07-01 15:45:12 -05:00
width: 40%;
2023-07-01 14:58:28 -05:00
height: auto;
}`);
})();