How to bypass a URL shortener with advertising?

I'm looking for a script to bypass links provided by the website 1short.us to get the download link directly.

For example:

Is there any way to do that?

I found this user script, but it can't bypass the second page.

// @namespace TecHPrO
// @description Short Script Bypass u can add any site using this script
// @include
// ==/UserScript==
var n=location.pathname;
var exp= /
var x= n.search(exp);
if (x != -1)
{
var l=document.getElementsByName('groovybtn1')[0];
var s = l.getAttribute('onclick');
var s1= s.split("(\'");
var s2= s1[1];
var s3= s2.split("\',\'");
var s4= s3[0];
window.location= s4;}
else {
var p=location.href;
var c=p.split("http://");
var c1=c[0];
var c2=c[1].split("/");
var c3=c2[0];
var c4=c2[1]
window.location="http://"+c3+"/m1.php?id="+c4;
}

I've found a second user script, but it appends ','name','800','800','yes');return%20false to the final URL.

Here's the code:

// ==UserScript== // @name 1short.us // @namespace // @include // @version 1 // ==/UserScript==
/*! jQuery v1.8.3 jquery.com | */
/* Contents of */ //this is the place to work in lets test
//"NewWindow('mediafire_fix.php?url=);return false"
var link =location.href;
link=link.replace("","");
//alert(link);
var link2="";
$.get("",{'id':link} ,function(data){ link2=$(data).find(':button').attr('onclick'); link2=link2.replace("NewWindow('",""); link2=link2.replace("','name','800','600','yes');return false",""); location.href=link2 });
2

1 Answer

The user script itself is working fine, but the headers are incomplete.

The first lines should be:

// ==UserScript==
// @namespace TecHPrO
// @description Short Script Bypass u can add any site using this script
// @include
// ==/UserScript==

Note that the first line is missing. This causes the headers to be ignored, so the script gets applied to all websites. To work properly, it should be restricted to sites of the 1short.us domain.

As it is, the user script redirects from to , and from there to . So far, so good. It should stop here.

However, due to the missing header, the else block of the if statement gets executed again, and the script redirects to . This results in a 404.


The second user script does not work since 1short – apparently – changed the size of their new browser window. Any change to the website will might render a user script useless.

In this case, the line

link2=link2.replace("','name','800','600','yes');return false","");

is supposed to get rid of the unwanted part of the URL, but the actual URL finishes with:

','name','800','800','yes');return false

Changing that line of the user script to

link2=link2.replace("','name','800','800','yes');return false","");

(i.e., replacing 600 with 800) will fix it.

6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like