91porn视频直链获取J

在91视频播放的下方添加m3u8下载直链 借鉴:https://greasyfork.org/zh-CN/scripts/427514-91porn%E5%8E%BB%E5%B9%BF%E5%91%8A-%E6%94%AF%E6%8C%81%E5%BC%B9%E5%B9%95

  1. // ==UserScript==
  2. // @name 91porn视频直链获取J
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description 在91视频播放的下方添加m3u8下载直链 借鉴:https://greasyfork.org/zh-CN/scripts/427514-91porn%E5%8E%BB%E5%B9%BF%E5%91%8A-%E6%94%AF%E6%8C%81%E5%BC%B9%E5%B9%95
  6. // @author You
  7. // @match */view_video.php*viewkey*
  8. // @icon https://www.google.com/s2/favicons?domain=91porn.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict';
  15. //strencode2 = unescape;
  16. var jm = unescape(document.documentElement.outerHTML.split("document.write(strencode2(\"")[1].split("\"")[0]);
  17. var u = jm.split("<source src='")[1].split("'")[0];
  18. console.log("91视频地址:" + u);
  19.  
  20. var uu = u.split('/');
  21. uu = uu[uu.length - 1].split('.');
  22. if (uu.length > 1) {
  23. uu.pop()
  24. }
  25. var id = uu.join('');
  26.  
  27. var a = document.createElement("a");
  28. var name = document.title.replace(' Chinese homemade video', '');
  29. name = name.replace(/([\:\/\\<\|\"\?>\*“”])/g, "").replace('"', '');
  30. if (u.indexOf(".mp4") > 0) {
  31. a.text = 'curl -o "' + id + '_' + name + '.mp4" "' + u + '" -k';
  32. } else {
  33. a.text = 'ffmpeg -y -i "' + u + '" "' + id + '_' + name + '.mp4"';
  34. }
  35. a.setAttribute("href", u)
  36. document.getElementById("videodetails").appendChild(a);
  37. })();