Skip to content

Instantly share code, notes, and snippets.

@udaken
Last active September 11, 2016 15:55
Show Gist options
  • Save udaken/ff9ba6f875e0193911194e52f34123a6 to your computer and use it in GitHub Desktop.
Save udaken/ff9ba6f875e0193911194e52f34123a6 to your computer and use it in GitHub Desktop.
comic meteo HTML5 Player
// ==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