How to Create Mediafire Direct Download Link Converter Tool in Blog - Post or Page

Hey Guys! Welcome back to Techly Series website.

Assuming You are observing the Mediafire Direct Download Link Converter Tool Script on blogger. This is the Right Place to you. Since You can get this Script for free and gain deep pocket With Your adsense.

Today, in this article, I will Discuss with you about How to Create Mediafire Direct Download Link Converter Tool in Blog - Post or Page.

Information

Direct download links offer a superior, more straightforward method for robotizing this interaction. There is a method for doing this by tweaking the "file_id" of your common document, yet that is each of the a piece specialized we need to make it more straightforward, not more troublesome.

How to Create

So, to create Mediafire Direct Download Link Converter Tool on blogger you need to follow the following process below precisely.

What's more, with the help of these steps, you can easily make this tool in your blogger website.

Step 1

  • You will go to your - Blogger Dashboard
  • Go to Theme
  • Go to - Edit HTML
  • Search - </head> or &lt;/head&gt;
  • Copy this CSS Code below and Paste on top of </head> or &lt;/head&gt;
  • Save Theme

You must back up your theme before go to Edit HTML

<link rel='stylesheet' href='https://cdn.jsdelivr.net/gh/itsTSUI/tsP/toolBody.css'/>
<script crossorigin='anonymous' src='https://kit.fontawesome.com/4ad360bfd2.js'/>

Step 2

  • After Save Theme
  • Create a new Post or Page
  • Copy this HTML & Javascript Code below and Paste in your blog - Post or Page
  • Publish
<div class="Tbody">

<b>URL</b>
<input id="mediafire-url" placeholder="Paste URL Here..." required/>

<button type="button" id="Gbutton">Generate<i class="fa-regular fa-hand-point-right"></i></button>

<b>Direct URL</b>
<input id="mediafire-new-url" placeholder="Get Direct URL Here..." readonly/>

<button type="button" onclick="attemptDownloadRedirect()" id="mediafire-dl-btn"><i class="fa fa-cloud-arrow-down"></i>Download</button>

</div>
  
<script>
const corsProxy="https://api.allorigins.win/get?url=",validMediafireIdentifierDL=/^[a-zA-Z0-9]+$/m,validMediafireShortDL=/^(https?:\/\/)?(www\.)?mediafire\.com\/\?[a-zA-Z0-9]+$/m,validMediafireLongDL=/^(https?:\/\/)?(www\.)?mediafire\.com\/(file|view|download)\/[a-zA-Z0-9]+(\/[a-zA-Z0-9_\-\.~%]+)?(\/file)?$/m,checkHTTP=/^https?:\/\//m,paramDL_initialDelay=30,paramDL_loadDelay=50;var p,isOpera=!!window.opr&&!!opr.addons||!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,isFirefox="undefined"!=typeof InstallTrigger,isSafari=/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&window.safari.pushNotification).toString(),isIE=!!document.documentMode,isEdge=!isIE&&!!window.StyleMedia,isChrome=!!window.chrome&&(!!window.chrome.webstore||!!window.chrome.runtime),isEdgeChromium=isChrome&& -1!=navigator.userAgent.indexOf("Edg"),isBlink=(isChrome||isOpera)&&!!window.CSS;let validateDelayCheck=null,fromParameters=!1,previousUrlValue="";var getQueryStringArray=function(){let b=[],c=window.location.search.substring(1).split("&");for(let a=0;a<c.length;a++){let d=c[a].split("=");b[d[0]]=d[1]}return b},downloadFile=function(a){let b=document.createElement("a");b.href=a,b.download=a.substr(a.lastIndexOf("/")+1),b.click()},downloadFileStarting=function(){setTimeout(function(){window.history.length>=2?window.history.back():isSafari?window.location="favorites://":isChrome?window.location="chrome://newtab":isOpera?window.location="opera://newtab":isEdgeChromium?window.location="edge://newtab":isEdge||isIE?window.location="about:tabs":isFirefox?window.location="about:newtab":window.location="about:blank"},750)},downloadFileBegin=function(b){let a=document.createElement("div");a.style="display: none",document.body.appendChild(a),a.innerHTML='<iframe id="iframeFileDL" src="about:blank" onload="downloadFileStarting()"></iframe>',setTimeout(function(){document.getElementById("iframeFileDL").src=b},50)},validationChecker=function(a,d,e,b){let c=validMediafireIdentifierDL.test(a)||validMediafireShortDL.test(a)||validMediafireLongDL.test(a);return a&&c?(b.value=window.location.origin+window.location.pathname+"?dl="+a,!0):(b.value="",!1)},attemptDownloadRedirect=async function(a,e,f,b){a||(a=document.getElementById("mediafire-url").value),e||(e=document.getElementById("Gbutton")),b||(b=document.getElementById("mediafire-new-url")),f||(f=document.getElementById("mediafire-dl-btn")),a=a.replace("http://","https://"),validMediafireIdentifierDL.test(a)&&(a="https://mediafire.com/?"+a),checkHTTP.test(a)||(a="https://"+a),console.log(`Checking "${a}" for valid download page...`);try{let g=await fetch("https://api.allorigins.win/get?url="+encodeURIComponent(a));if(g.ok){let h=(await g.json()).contents;if(h){let c=new DOMParser().parseFromString(h,"text/html").getElementById("downloadButton");if(c&&c.href){let d=c.href;return console.log(`Downloading from "${d}"...`),fromParameters?downloadFileBegin(d):downloadFile(d),!0}}}return console.error(`No valid download button at "${a}".`),b.value="",!1}catch(i){return console.warn("Something went wrong.",i),console.error(`No valid download button at "${a}".`),b.value="",!1}};window.addEventListener("load",function(){let e=document.getElementById("mediafire-url"),b=document.getElementById("Gbutton"),c=document.getElementById("mediafire-new-url"),d=document.getElementById("mediafire-dl-btn"),a=getQueryStringArray().dl;a&&(fromParameters=!0,e.value=a,console.log(`Validating "${a}" as valid Mediafire download...`)),validationChecker(a,b,d,c)&&attemptDownloadRedirect(a,b,d,c),b.onclick=function(){let a=e.value;validationChecker(a,b,d,c),previousUrlValue=a}});
</script>

Final Words

You ought to indeed note by thinking in the remark box underneath. Or on the other hand you moreover bear to give some sort of Suggestion, likewise you can partake your conviction with me in the Comment Box beneath.

I didn't give this content to any individual who saw or replicated them. This content I've looked through a great deal and given by experience. So kindly don't note on this substance.

Assuming you experience any issues while copying this script you can impart me by Telegram and I'll attempt to help.

  • Aᴀ
  • A+
  • A-