Bypass FileCrypt

Bypass FileCrypt and get the original link! Try this version first. If Bypass FileCrypt shows a "2" in the page and doesn't redirect to the final page, then remove this script and try Bypass FileCrypt (XHR) instead.

当前为 2021-03-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Bypass FileCrypt
  3. // @namespace StephenP
  4. // @version 1.3.2
  5. // @description Bypass FileCrypt and get the original link! Try this version first. If Bypass FileCrypt shows a "2" in the page and doesn't redirect to the final page, then remove this script and try Bypass FileCrypt (XHR) instead.
  6. // @author StephenP
  7. // @grant GM.xmlHttpRequest
  8. // @match http://filecrypt.cc/*
  9. // @match http://www.filecrypt.cc/*
  10. // @match http://filecrypt.co/*
  11. // @match http://www.filecrypt.co/*
  12. // @match https://filecrypt.cc/*
  13. // @match https://www.filecrypt.cc/*
  14. // @match https://filecrypt.co/*
  15. // @match https://www.filecrypt.co/*
  16. // @run-at document-end
  17. // @connect dcrypt.it
  18. // @connect self
  19. // ==/UserScript==
  20. (function () {
  21. var usenetAd=document.getElementsByTagName('A');//come on, why should anyone pay for access to pirated content?
  22. for(var i=0;i<usenetAd.length;i++){
  23. if(usenetAd[i].href.includes('/pink/')){
  24. usenetAd[i].parentNode.remove();
  25. i=usenetAd.length;
  26. }
  27. }
  28. if(document.location.href.includes("/Link/")){
  29. getSingleLink();
  30. }
  31. else if(document.location.href.includes("/Container/")){
  32. getCNL();
  33. }
  34. })();
  35. function getSingleLink(){
  36. if(document.body.getElementsByTagName("SCRIPT").length==0){
  37. window.stop();
  38. const a=document.body.innerHTML.lastIndexOf("http");
  39. top.location.href=document.body.innerHTML.substring(a,document.body.innerHTML.indexOf('id=',a)+43).replace('&amp;', '&');
  40. }
  41. }
  42. function getCNL(){
  43. var dlcButton=document.getElementsByClassName("dlcdownload");
  44. if(dlcButton.length>0){
  45. var inputs=document.getElementsByTagName('INPUT');
  46. var dlcId;
  47. for(var i=0;i<inputs.length;i++){
  48. if(inputs[i].getAttribute('name')=='hidden_cnl_id'){
  49. dlcId=inputs[i].getAttribute('value');
  50. i=inputs.length;
  51. }
  52. }
  53. console.log('dlcId='+dlcId);
  54. GM.xmlHttpRequest({
  55. method: "GET",
  56. url: "https://"+document.location.hostname+"/DLC/"+dlcId+".dlc",
  57. onload: function(response) {
  58. dcrypt(response.responseText);
  59. },
  60. onerror: function(response) {
  61. }
  62. });
  63. }
  64. }
  65. function dcrypt(content){
  66. GM.xmlHttpRequest({
  67. method: "POST",
  68. url: "http://dcrypt.it/decrypt/paste",
  69. headers: {
  70. "Content-Type": "application/x-www-form-urlencoded"
  71. },
  72. data: "content="+encodeURIComponent(content),
  73. onload: function(response) {
  74. var obj=JSON.parse(response.response);
  75. var finalLinksDiv=document.createElement("DIV");
  76. finalLinksDiv.style.backgroundColor="white";
  77. finalLinksDiv.style.borderRadius="10px";
  78. finalLinksDiv.style.padding="1em";
  79. finalLinksDiv.style.marginTop="1em";
  80. finalLinksDiv.style.color="black";
  81. finalLinksDiv.innerHTML+="Direct links:<br><br>";
  82. for (var link of obj.success.links) {
  83. finalLinksDiv.innerHTML+=link+"<br>";
  84. }
  85. document.getElementsByClassName("butt1ns")[0].parentNode.appendChild(finalLinksDiv);
  86. },
  87. onerror: function(response) {
  88. }
  89. });
  90. }