Skip to content

Instantly share code, notes, and snippets.

@noromanba
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noromanba/cc04a0feee54c87ac13a to your computer and use it in GitHub Desktop.
Save noromanba/cc04a0feee54c87ac13a to your computer and use it in GitHub Desktop.
immediately load images on Champion Tap! for UserScript
// ==UserScript==
// @name tap dance
// @description immediately load images on Champion Tap! for UserScript
// @namespace http://noromanba.flavors.me
// @include http://tap.akitashoten.co.jp/comics/nekotaro/*
// @grant none
// @run-at document-end
// @version 2014.10.26.0
// @homepage https://gist.github.com/noromanba/cc04a0feee54c87ac13a
// @downloadURL https://gist.github.com/noromanba/cc04a0feee54c87ac13a/raw/tap-dance.user.js
// @license MIT License http://nrm.mit-license.org/2014
// @author noromanba
// @copyright (c) 2014 noromanba http://noromanba.flavors.me
// @icon http://www.clker.com/cliparts/9/9/8/a/133479453562173908wingedfoot2-th.png
// @icon64 http://www.clker.com/cliparts/9/9/8/a/133479453562173908wingedfoot2-th.png
// ==/UserScript==
// Icon (PD by DAVID WEBB)
// http://www.clker.com/clipart-198642.html
// Devel
// https://gist.github.com/noromanba/cc04a0feee54c87ac13a
// avoid image duplicate
window.VerticalPage.prototype.load = function () {};
Array.prototype.slice.call(document.querySelectorAll('#canvasInner .page')).forEach(function (box, idx) {
if (box.children.length) return;
var img = document.createElement('img');
img.src = location.pathname + '/' + (idx + 1);
box.appendChild(img);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment