Skip to content

Instantly share code, notes, and snippets.

@pr0way
Last active April 7, 2025 14:30
Show Gist options
  • Select an option

  • Save pr0way/574db63c1ad24992e40b3fcb2efcfeb6 to your computer and use it in GitHub Desktop.

Select an option

Save pr0way/574db63c1ad24992e40b3fcb2efcfeb6 to your computer and use it in GitHub Desktop.
Voe.sx

Voe.sx bookmarklet

This method simplify extracting url to real video streaming services by copying them to clipboard. Designated for people who know what they want and have skills to do so.

What is Bookmarklet?

Once upon a time there was a way to execute custom JavaScript code in context of indicated site. It was called Bookmarket. Thanks to this feature you could do tedious work in a minute.

For example - you go to the page, fired up bookmarklet and grab link to your favourite movie directly to your clipboard. It's just a drop in the ocean of possibilities but it good shows the bigger picture.

How to create?

  1. Create any new bookmark that you can easily pin to your bookmarks
Optionally you can show bar with bookmarks: Three dashes in right top corner > Bookmarks and lists > Show bookmarks > Always
  1. Adjust or copy below code as it is:
javascript:(function(){var qwe = document.evaluate("//a[contains(., 'voe.sx')]", document, null, XPathResult.ANY_TYPE, null ).iterateNext();qwe.click();let url = document.querySelector('#player-container .btn-primary')?.href ?? document.querySelector('#player-container iframe').src;navigator.clipboard.writeText(url);})();
  1. Edit created bookmark and in URL field paste the whole command.
  2. Enjoy.

How it works?

  1. Go to any site where you want to do some action
  2. Click on crafted bookmark
  3. Done

Create your own?

When you understand how its done its not that complex as it is at first sight. If you know JavaScript, even better.

  1. It all starts with keyword: javescript:
  2. After that we create IIFE and place all our code inside (function(){ # any js kod here })();
  3. The rest is just JS code, but with remove spaces/new lines and ; after each instruction:
javascript:(function(){
    
    var qwe = document.evaluate("//a[contains(., 'voe.sx')]", document, null, XPathResult.ANY_TYPE, null ).iterateNext();
    qwe.click();
    let url = document.querySelector('#player-container .btn-primary')?.href ?? document.querySelector('#player-container iframe').src;
    navigator.clipboard.writeText(url);

})();
Browsers don't care about code readability if as long as it works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment