Greasy Fork is available in English.

Bypass FileCrypt

Bypass FileCrypt and get the original link!

// ==UserScript==
// @name         Bypass FileCrypt
// @namespace    StephenP
// @version      1.1.2
// @description  Bypass FileCrypt and get the original link!
// @author       StephenP
// @match        http://filecrypt.cc/Link/*
// @match        http://www.filecrypt.cc/Link/*
// @grant        GM.xmlHttpRequest
// ==/UserScript==
(function () {
    GM.xmlHttpRequest({
    method: "GET",
    url: document.location.href,
    onload: function(response) {
      window.stop();
		  var a=response.responseText.lastIndexOf("https://filecrypt.cc/index.php?Action");
      if(a==-1){
      	a=response.responseText.lastIndexOf("https://www.filecrypt.cc/index.php?Action");
      }
      //var iframeId=response.responseText.substring(a);
      var b=response.responseText.indexOf('</iframe>',a);
      if(b==-1){
        var b=response.responseText.indexOf('</script>',a);
      }
      var iframeId=response.responseText.substring(a,b-2);
      console.log(iframeId);
      top.location.href=iframeId;
    }
    });
})();