Skip to content

Instantly share code, notes, and snippets.

@serinuntius
Last active July 13, 2016 10:16
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 serinuntius/048c38654791c30e08cd0d433e0a17df to your computer and use it in GitHub Desktop.
Save serinuntius/048c38654791c30e08cd0d433e0a17df to your computer and use it in GitHub Desktop.
anitubeの生mp4が見れる奴〜〜〜〜
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(); } }});
@serinuntius
Copy link
Author

serinuntius commented Jul 13, 2016

モバイル対応(幻想だった)

@serinuntius
Copy link
Author

幻想の幻想だった。
実は対応できてたけど、モバイルのChromeでは一工夫しないとブックマークレットが動かない。

参考URL
http://ametuku.com/archives/6858

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment