try to take over the world!
当前为
// ==UserScript==
// @name e(x)hentai image resizer
// @namespace https://greasyfork.org/users/780477
// @version 0.2
// @description try to take over the world!
// @match *://e-hentai.org/s/*
// @match *://exhentai.org/s/*
// @grant none
// ==/UserScript==
function change_css(){
const img = document.getElementById('img')
img.style.width = ''
img.style.height = '90vh'
}
(function() {
'use strict';
// credits https://stackoverflow.com/a/46428962
var oldHref = document.location.href
var
bodyList = document.querySelector("body")
,observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (oldHref != document.location.href) {
oldHref = document.location.href;
change_css()
}
});
});
var config = {
childList: true,
subtree: true
};
observer.observe(bodyList, config);
change_css()
})();