Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

You may know the vtunnel.com. You can access blocked sites through this. There is a form which takes the url of the site I want to go and after posting, the site appears with some vtunnel urls, unblocked.

I was thinking of a bookmarklet which will take the current url typed in the address box and post it to vtunnel with the appropriate form values and the site will appear. Is there any such bookmarklet? And if one is not there, I think it will not be difficult to make. But I am not a Javascript guy. Can anyone help me?

Or, is it not even possible? I don't have any idea actually.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Try this bookmarklet below:

javascript:_vtunnel_form=document.createElement('FORM');_vtunnel_form.name='login';_vtunnel_form.method='POST';_vtunnel_form.action='http://www.vtunnel.com/index.php/1010110A/ee908e12b7cb248c8f';_vtunnel_h1=document.createElement('INPUT');_vtunnel_h1.type='TEXT';_vtunnel_h1.name='username';_vtunnel_h1.value=location.href;_vtunnel_form.appendChild(_vtunnel_h1);_vtunnel_h2=document.createElement('INPUT');_vtunnel_h2.type='HIDDEN';_vtunnel_h2.name='r4';_vtunnel_h2.value=' checked';_vtunnel_form.appendChild(_vtunnel_h2);_vtunnel_h3=document.createElement('INPUT');_vtunnel_h3.type='HIDDEN';_vtunnel_h3.name='fa';_vtunnel_form.appendChild(_vtunnel_h3);_vtunnel_h4=document.createElement('INPUT');_vtunnel_h4.type='HIDDEN';_vtunnel_h4.name='if';_vtunnel_h4.value=' checked';_vtunnel_form.appendChild(_vtunnel_h4);document.body.appendChild(_vtunnel_form);_vtunnel_form.submit();  

See Stack Overflow questions:

Problem while creating “copy-paste JavaScript”
&
How to create a form dynamically using JavaScript?

share|improve this answer
    
Thank you so much. –  Gulshan Oct 22 '10 at 5:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.