Last active
July 13, 2016 10:16
-
-
Save serinuntius/048c38654791c30e08cd0d433e0a17df to your computer and use it in GitHub Desktop.
anitubeの生mp4が見れる奴〜〜〜〜
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
javascript:document.xpath = function (expression) { ret = document.evaluate(expression, document, null, XPathResult.ANY_TYPE, null); switch (ret.resultType) { case 1: return ret.numberValue; case 2: return ret.stringValue; case 3: return ret.booleanValue; case 4: case 5: a = []; while (e = ret.iterateNext()) { a.push(e); } ; return a; default: return ret; }};!function (d, f, s) { s = d.createElement("script"); s.src = "//j.mp/1bPoAXq"; s.onload = function () { f(jQuery.noConflict(1)) }; d.body.appendChild(s)}(document, function ($) {});$.ajax({ type: 'GET', url: location.href.indexOf('//m') > 0? document.xpath('//*[@id="content"]/div[3]/div[1]/div[2]/script[2]')[0].src : document.xpath('//*[@id="videoPlayer"]/script[3]')[0].src, dataType: 'html', success: function (data) { var base = data.toString().match(/\t\tfile: ".*",/g)[1]; if (base.match(/h.*4/)) { location.href = base.match(/h.*4/).toString(); } else{ var base = data.toString().match(/\t\tfile: ".*",/g)[0]; location.href = base.match(/h.*4/).toString(); } }}); |
幻想の幻想だった。
実は対応できてたけど、モバイルのChromeでは一工夫しないとブックマークレットが動かない。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
モバイル対応(幻想だった)