Last active
August 14, 2017 15:12
-
-
Save udaken/3ba84be372d6e71b88402dbc129c0346 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
| // ==UserScript== | |
| // @name Comic Claer HTML5 Player | |
| // @namespace http://d.hatena.ne.jp/deraw | |
| // @include http://www.comic-clear.jp/comic.aspx* | |
| // @version 1 | |
| // @grant none | |
| // @downloadURL https://gist.github.com/udaken/3ba84be372d6e71b88402dbc129c0346/raw/Comic_Clear_HTML5_Player.user.js | |
| // ==/UserScript== | |
| (function () { | |
| var links = document.evaluate('//a[contains(@href,"/viewer/EB/")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); | |
| for (var i = 0; i < links.snapshotLength; i++) { | |
| //console.log(links.snapshotItem(i)); | |
| links.snapshotItem(i).href = links.snapshotItem(i).href.replace('/index.html', '/html5.html'); | |
| } | |
| }) (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment