Exclusive Facts on Javascript Interpretation in the URL box in 2021

Introduction to Javascript Interpretation in the URL box

When I started learning JavaScript, I learned that Browser can interpret and execute JavaScript commands. On the other hand javaScript command is nothing but series of commands. So if someone wants to run JavaScript in URL they can do that. But there is one syntax.
Let’s see what is the syntax:
1.We need to provide “JavaScript” followed by a colon(“:”) and then the command.
2. Now give semicolon(“;”) and press enter
Let’s see how it works:

javascript:alert(“Hi from URL);


The browser detects if after javascript there is any colon that exists or not. If it is there browser needs to process the request and interpret otherwise it will try to find the same in www.

 

Wow!!! it is working in Internet Explorer(IE).
I tried the same in Mozilla and Chrome . To my surprise it is not working.Why so …I tried google.
I found a thread in Mozilla http://support.mozilla.org/en-US/questions/864607 the request was “

Javascript interpretation in the URL box doesn’t work any more.

While checking out more I found https://bugzilla.mozilla.org/show_bug.cgi?id=656433 this report. It is showing this feature is blocked.
Why??
I found a satisfactory reply
Gavin Sharp (use [email protected] for email) 2011-05-11 14:09:52 PDT

As per him


"I liked the idea of a paste-specific approach, since that leaves only relatively impractical attack alternatives (convincing users to manually type part of it in, having them paste it in the error console instead, etc.)"
I remember that while Orkutting in my early days I use to send Scraps To All Orkut Friends At Once .
I remember I used the below written code to scrap all of my friends.
javascript:d=document;c=d.createElement(‘script’);d.body.appen


This is taken from http://www.darkorkut.com/send-a-common-scrap-to-all-your-orkut-friends-at-once/


Again

The popular social networking site Orkut has become a worldwide rage. We will compile a list of all the Orkut tricks which will spice up your Orkut experience. There would b many Orkut users on frendz4m I am also so I am doing these… These javascript are to be pasted in the browser only. No need to download any software. All the Javascripts should be pasted in a single line.
1)Invisible Post Trick in Orkut: While posting a topic or writing a scrap, just write [/i] in the post. 

2)Vertical Text: Paste the following javascript in your web browser address bar after navigating to the specified orkut page. [I]javascript:var a=document.getElementsByTagName (‘ textarea’) [0 ];a.value=a.value.replace (/|/g,” “);void(0) ; This can be done on any orkut page where you can post eg. scrapbook, community reply page etc. after writing the text. The text you wrote will now be vertically aligned!

Further visit: 10 Best JavaScript Libraries And Frameworks to Try Beyond 2020

READ  ReactJS: Essential You Need to Know in 2021

3) Colorful Look: This orkut-trick Gives a colorful look to all links on the page. Run this script on any page and the links will be shown in different colors! Paste the following javascript in your web browser address bar after navigating to the specified orkut page. javascript: mwunm=0 ; c= [“maroon”,”blue”,”purple”,” green”]; a=document.links;setInterval (‘mwunm ;a [ mwunm % document.links.length].style.color=c [ mwunm % c.length]’,10) ;void(0) 

4) Reverse Text: Ever wanted to write in reverse scraps in orkut ? make you dream true.This script can be used to reverse the text. Just write any text in a scrapbook or a community thread reply. And run the given script in your browser address bar. Paste the following javascript in your web browser address bar after navigating to the specified orkut page. javascript:txt = document.getElementsByTagName (‘ textarea’) [0 ];txt.value=txt.value.match (/./gi).reverse(). join (”);void(0)

Taken from http://hacknow.wapka.mobi/site_20.xhtml

These were fun in those days. Now I came to know that a little modification of these can be a security violation and can lead to a serious problem.
So this syntax does not work anymore. History!!!! yes, it is now History.
 Image Credit: http://www.seomofo.com

Share and Enjoy !

Leave a Reply

Your email address will not be published. Required fields are marked *