Last active
May 18, 2018 20:06
-
-
Save knowlet/7e47f56229dc0f4f28eceaa29e3adbdb to your computer and use it in GitHub Desktop.
Expand 930mh comic pic.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name KissComic | |
// @namespace https://knowlet.me/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author knowlet | |
// @match http://www.930mh.com/manhua/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
// Your code here... | |
const findImageHandler = setInterval(_ => { | |
if (images !== undefined) { | |
clearInterval(findImageHandler); | |
const d = document.createElement('div'); | |
for (const chapterImage of chapterImages) { | |
const b = new Image(); | |
b.src = `http://mhimg.acg.gd:44236/${chapterPath}${chapterImage}`; | |
d.appendChild(b); | |
d.appendChild(document.createElement('br')); | |
}; | |
const div = document.getElementById('images'); | |
const parentDiv = div.parentNode; | |
parentDiv.replaceChild(d, div); | |
document.querySelector('.img_land_next').onclick = e => { SinTheme.nextChapter(); }; | |
} | |
}, 1000); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment