Botu Predator

截取博图加密PDF

  1. // ==UserScript==
  2. // @name Botu Predator
  3. // @namespace https://qinlili.bid
  4. // @version 0.1
  5. // @description 截取博图加密PDF
  6. // @author You
  7. // @match *://www.cnbooksearch.com/CheckIpForRead.aspx?*
  8. // @match *://*/*/CheckIpForRead.aspx?*
  9. // @grant none
  10. // @run-at document-body
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var loadUrl= new Function(document.body.getAttribute("onload").replace("javascript:","").replace("OpenURL","OpenUrlHook"));
  16. document.body.onload="";
  17. document.body.setAttribute("onload","");
  18. console.log("catch onload event!")
  19. window.OpenUrlHook=function(nouse0,pdfurl,nouse1,nouse2){
  20. console.log("Got PDF URL:"+pdfurl);
  21. fetch(pdfurl).then(res => res.blob().then(blob => {
  22. var bloburl = URL.createObjectURL(blob);
  23. var a = document.createElement('a');
  24. var filename = "[尚未解密]"+document.title+".pdf";
  25. a.href = bloburl;
  26. a.download = filename;
  27. a.click();
  28. window.URL.revokeObjectURL(bloburl);
  29. }))
  30. }
  31. loadUrl();
  32. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址