Erome Bookmarklet

https://www.reddit.com/r/joi/comments/a6k94h/erome_link_tool/

Source (www.reddit.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%28function%28%29%20%7B%20%09var%20containers%20%3D%20Array.from%28document.getElementsByClassName%28%27video%27%29%29%3B%20%09containers.forEach%28%28container%29%20%3D%3E%20%7B%20%09%09var%20vid%20%3D%20container.getElementsByTagName%28%27video%27%29%3B%20%09%09var%20sources%20%3D%20Array.from%28vid%5B0%5D.getElementsByTagName%28%27source%27%29%29%3B%20%09%09var%20linksOut%20%3D%20%27%27%3B%20%09%09sources.forEach%28%28link%2C%20index%29%20%3D%3E%20%7B%20%09%09%09linksOut%20+%3D%20%28index%20%3E%200%20%3F%20%27%2C%20%27%20%3A%20%27%27%29%20+%20%27%3Ca%20href%3D%22%27+%20link.getAttribute%28%27src%27%29%20+%20%27%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3E%27%20+%20link.getAttribute%28%27label%27%29%20+%20%27%3C/a%3E%27%3B%20%09%09%7D%29%3B%20%09%09container.insertAdjacentHTML%28%27beforeend%27%2ClinksOut%29%3B%20%09%7D%29%3B%20%7D%29%28%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.