Skip to content

Instantly share code, notes, and snippets.

@eagletmt
Created July 31, 2010 05:51
Show Gist options
  • Save eagletmt/501806 to your computer and use it in GitHub Desktop.
Save eagletmt/501806 to your computer and use it in GitHub Desktop.
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