added styling for webtoons
This commit is contained in:
parent
f776d5a2a1
commit
1351910f6b
1 changed files with 30 additions and 0 deletions
30
userscripts/style-webtoons.js
Normal file
30
userscripts/style-webtoons.js
Normal file
|
@ -0,0 +1,30 @@
|
|||
// ==UserScript==
|
||||
// @name Style-Webtoons
|
||||
// @namespace code.sitosis.com
|
||||
// @version 1.0
|
||||
// @description Style Webtoons
|
||||
// @author rudism
|
||||
// @match https://webtoons.com/*
|
||||
// @match https://www.webtoons.com/*
|
||||
// @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(`
|
||||
.viewer_lst .viewer_img img._images {
|
||||
max-width: 300px;
|
||||
min-width: 300px;
|
||||
height: auto;
|
||||
}`);
|
||||
})();
|
Loading…
Reference in a new issue