JavaScript :
JavaScript is one of the famous and most used scripting language in the cross platform or web platform. Its easy to learn and also used html and web.
A few weeks ago I was working on ‘getElementsByName()’ & ‘getElementsByClassName()’ methods of JavaScript and Found something special about these two function after implementing them on ‘Social Media Platforms like : Facebook and LinkedIn. These two methods helped me to accept the friend request in Facebook and accept invitation in LinkedIn.’
getElementByName() Implementation In Facebook:
So firstly I opened up my ‘VSCODE’ editor in my system then wrote a script with my friend that helped me to accept friend request in my Facebook account.
Then fired up my chrome browser login to facebook account and open developer option using ‘ctrl+shift+i’ and pasted my script into a console box of developer option and hit enter . And it was successfully executed.
Console Box in chrome developer option →
The script is available here →
https://github.com/ankitdobhal/javascript-console/blob/master/Javascript-programming/facebook.js
getElementsByClassName() Implementation In LinkedIn:
I fired up my ‘VSCODE’ editor again and wrote a script which helped me to accept invitation in LinkedIn.
Then in my chrome browser I opened ‘developer option’ using ‘ctrl+shift+i’ and pasted this script into the console box and hit enter.
Console Box in chrome developer option →
The script is available here →
https://github.com/ankitdobhal/javascript-console/blob/master/Javascript-programming/linkedin_script.js
This shows that JavaScript is one of the power-full scripting language in cross platform and web.
Top comments (0)