Last active
September 11, 2016 15:55
-
-
Save udaken/ff9ba6f875e0193911194e52f34123a6 to your computer and use it in GitHub Desktop.
comic meteo HTML5 Player
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 comic meteo HTML5 Player | |
// @namespace http://d.hatena.ne.jp/deraw | |
// @include http://comic-meteor.jp/* | |
// @version 1.0 | |
// @grant none | |
// @downloadURL https://gist.github.com/udaken/ff9ba6f875e0193911194e52f34123a6/raw/comic_meteo_HTML5_Player.user.js | |
// ==/UserScript== | |
(function(){ | |
var links = document.evaluate('//a[contains(@href,"/_SWF_Window.html")]', 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("/_SWF_Window.html", "/HTML5/sd.html"); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment