Discussions » Creation Requests

How to avoid uploadsmith.com fixed chrome only can access to download

§
Posted: 2018-06-15
Edited: 2018-06-15

How to avoid uploadsmith.com fixed chrome only can access to download

uploadsmith.com have been fixed only Chrome can access to download files from these website i trying to change user agent to chrome in firefox but did't work want to known how they block other browser is'nt chrome and have anyway to avoid block and access to download files without chrome ?

https://uploadsmith.com/bngbad9iin00

wOxxOmMod
§
Posted: 2018-06-15

I don't think they do it intentionally. Judging by the devtools console, there's a bug in their code. Try contacting their site support.

§
Posted: 2018-07-25
Edited: 2018-07-25

It fixed it with this code

// ==UserScript==
// @name        UserAgent Sniffer
// @namespace   UserAgent Sniffer
// @description You need to change URL style to fix issue, Change url address "https://uploadsmith.com/xxxxxxxxxx" to "https://uploadsmith.com/download#xxxxxxxxxx"
// @include     *://uploadsmith.com/*
// @include     *://*.uploadsmith.com/*
// @version     1
// @grant       none
// ==/UserScript==

/* UPLOADSMITH.COM Fixed UserAgent
Object.defineProperty(navigator, 'userAgent', {
    value: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36'
});
*/

/* UPLOADSMITH.COM https://uploadsmith.com/download#xxxxxxxxxx */
if(document.querySelector('[title*="Not Found"]')){
    document.querySelector('[class*="page-title"],[title*="Not Found"]').innerHTML = '';
    document.querySelector('[class*="col-md-4 text-center"]').innerHTML = '                                 \
        <form method="POST" action="">                                                                      \
        <input type="hidden" name="op" value="download1">                                                   \
        <input type="hidden" name="usr_login" value="">                                                     \
        <input type="hidden" name="id" value="' + window.location.href.split('download#')[1] + '">          \
        <input type="hidden" name="fname" value="">                                                         \
        <input type="hidden" name="referer" value="' + document.referrer + '">                              \
        <input type="submit" id="method_free" name="method_free" class="dashbutton" value="Free Download">  \
        </form>                                                                                             \
    '
}

@wOxxOm As i see, You have high experience about javascript and greasemonkey, it's posible to working togather On new project i trying to building ?

Post reply

Sign in to post a reply.