Hyperlinks extractor from webpage offline and online - Bookmarklet

March 21, 2016

You can extract hyperlinks inside any webpage on the go using a bookmarklet. Creating a bookmarklet is just easy, you will drag the below link to your bookmarks bar. This not only extracts the scripts used inside any webpage but also formats it.

This also works for android Chrome browser. Which can be used as an chrome android extension.

To use, Open the page to be extracted, let it load completely then click on the bookmarks bar. This will open the new window with the extracted code.

javascript: (function() { tstr = ''; s = document.getElementsByTagName('a'); for (i = 0; i < s.length; i++) tstr += s[i].getAttribute("href") + "\n" ; with(window.open()) { document.write('<textarea rows="30" cols=100" id="t">' + tstr + "\n\n-------------------------------\n\n" + '</textarea>'); document.close(); } })();


Do not spam.

Like us on Facebook

Blog Archive