Skip to content
WJunction - Webmaster Forum

Making the links Clickable (live)

Status
Not open for further replies.
Hi,
I've seen many webmasters who wants their coded links to be clickable/live.
so that they can earn through their links specially hotfile links.

so here is the code customized to make hotfile links clickable/live.

search for:
Code:
<body>
Replace with:
Code:
<body onload="document.body.innerHTML=document.body.innerHTML.replace(/(http:\/\/hotfile.com\/)(.*)\s/gi, '<a href=$1$2>$1$2</a>');">
So now you can make only the hotfile links live.

Thanks,
Regards.
 

29 comments

well i m not a professional in it.. but its not working fully in code box until your links have a space after them.

little help needed...
how can the javascript be limited to search the links till.. .html or .rar..



edit..
i think i made it work.. lemme test it ;)
 
whats the use of making coded links clickable? years ago, webmasters started coding their links to avoid live links. Now u want to make them live again. Simply don't code them ?
 
whats the use of making coded links clickable? years ago, webmasters started coding their links to avoid live links. Now u want to make them live again. Simply don't code them ?
tell the thousands of warez posters that.
plus, you don't want people with premium account phishers all over warez sites again.

this method of making links live is better :)


@hyperz, is there a way of putting that into a javascript file?
 
Code:
document.body.innerHTML.replace(/(http:\/\/hotfile.com\/)([\w\d/&=#%.-_?+*$]*)\s/gi, '<a href="$1$2">$1$2</a>')
@Hyperz.. not working :(

hmm just seen the links are like this:

Code:
http://hotfile.com/dl/42632427/a83cee3/2MI-abhay_Tachoz.net.part1.rar.html<br>http://hotfile.com/dl/42632366/3123226/2MI-abhay_Tachoz.net.part2.rar.html<br>http://hotfile.com/dl/42632459/16c193b/2MI-abhay_Tachoz.net.part3.rar.html<br>http://hotfile.com/dl/42632442/c00779b/2MI-abhay_Tachoz.net.part4.rar.html<br>http://hotfile.com/dl/42632466/b431472/2MI-abhay_Tachoz.net.part5.rar.html<br>http://hotfile.com/dl/42633648/a1f718d/2MI-abhay_Tachoz.net.part6.rar.html<br>http://hotfile.com/dl/42632478/07002eb/2MI-abhay_Tachoz.net.part7.rar.html<br>
well no space and having br tag..
 
@Hyperz.. not working :(

hmm just seen the links are like this:

Code:
 [URL="http://hotfile.com/dl/42632427/a83cee3/2MI-abhay_Tachoz.net.part1.rar.html%3Cbr%3Ehttp://hotfile.com/dl/42632366/3123226/2MI-abhay_Tachoz.net.part2.rar.html%3Cbr%3Ehttp://hotfile.com/dl/42632459/16c193b/2MI-abhay_Tachoz.net.part3.rar.html%3Cbr%3Ehttp://hotfile.com/dl/42632442/c00779b/2MI-abhay_Tachoz.net.part4.rar.html%3Cbr%3Ehttp://hotfile.com/dl/42632466/b431472/2MI-abhay_Tachoz.net.part5.rar.html%3Cbr%3Ehttp://hotfile.com/dl/42633648/a1f718d/2MI-abhay_Tachoz.net.part6.rar.html%3Cbr%3Ehttp://hotfile.com/dl/42632478/07002eb/2MI-abhay_Tachoz.net.part7.rar.html%3Cbr%3E"]http://hotfile.com/dl/42632427/a83cee3/2MI-abhay_Tachoz.net.part1.rar.html<br>http://hotfile.com/dl/42632366/3123226/2MI-abhay_Tachoz.net.part2.rar.html<br>http://hotfile.com/dl/42632459/16c193b/2MI-abhay_Tachoz.net.part3.rar.html<br>http://hotfile.com/dl/42632442/c00779b/2MI-abhay_Tachoz.net.part4.rar.html<br>http://hotfile.com/dl/42632466/b431472/2MI-abhay_Tachoz.net.part5.rar.html<br>http://hotfile.com/dl/42633648/a1f718d/2MI-abhay_Tachoz.net.part6.rar.html<br>http://hotfile.com/dl/42632478/07002eb/2MI-abhay_Tachoz.net.part7.rar.html<br>[/URL]
well no space and having br tag..

^^ Lol those are my uploads :P

Ontopic: not working for me too.
 
@hyperz, is there a way of putting that into a javascript file?

I haven't touched JS in over 4 years but if my memory doesn't fail me this should do it:

Code:
if (document.addEventListener)
{ 
    document.addEventListener('load', replaceLinks, false); 
}
else if (document.attachEvent)
{ 
    document.attachEvent('onload', replaceLinks);
}

function replaceLinks()
{
    var html = '<a href="$1$2">$1$2</a>';
    var search = /(http:\/\/hotfile.com\/)([\w\d\/&=#%.-_?]*)\s/gi;
    
    document.body.innerHTML.replace(search, html);
}
Add a link to the js file in the <head> part of the html.

@Hyperz.. not working :(

There was a typo in it :(. Try again now.
 
The reason why people avoided live links back in the days was to avoid that sites like knew where people were coming from. Example if rapidshare would see 50k people comming from siteX... The site would be more vulnerable meh :D

Good code anyways :P
 
Whoo, as this system is based on javascript means that only browsers that support javascript will be able to see the download link as an href within the DOM.

I dont think any search bot supports javascript, and there for search bots will see as text!

this only applies to firefox,google chrome, internet explorer etc.
 
I haven't touched JS in over 4 years but if my memory doesn't fail me this should do it:

Code:
if (document.addEventListener)
{ 
    document.addEventListener('load', replaceLinks, false); 
}
else if (document.attachEvent)
{ 
    document.attachEvent('onload', replaceLinks);
}

function replaceLinks()
{
    var html = '<a href="$1$2">$1$2</a>';
    var search = /(http:\/\/hotfile.com\/)([\w\d\/&=#%.-_?]*)\s/gi;
    
    document.body.innerHTML.replace(search, html);
}
Add a link to the js file in the <head> part of the html.



There was a typo in it :(. Try again now.

Am i the only one that didnt understand this?
 
Status
Not open for further replies.

About the author

D
Active Member · Joined
1,393
Messages
61
Reactions
48
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom