Created
July 31, 2010 05:51
-
-
Save eagletmt/501806 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
commands.addUserCommand(['pixivFullNovel'], 'show full novel', | |
function(args) { | |
let doc = content.document.wrappedJSObject; | |
let win = content.window.wrappedJSObject; | |
Array.forEach(doc.querySelectorAll('.novel_article'), | |
function(e) { | |
e.style.display = 'block'; | |
e.innerHTML = win.parse_page(e.innerHTML); | |
} | |
); | |
Array.forEach(doc.querySelectorAll('.novelimage'), | |
function(e) { | |
e.innerHTML = win.illust_html_list[e.getAttribute('illust_id')]; | |
} | |
); | |
}, null, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment