Skip to content

Instantly share code, notes, and snippets.

@Gesugao-san
Last active October 25, 2021 14:48
Show Gist options
  • Select an option

  • Save Gesugao-san/833e26c2402e2a91df3d0d220cbd9a68 to your computer and use it in GitHub Desktop.

Select an option

Save Gesugao-san/833e26c2402e2a91df3d0d220cbd9a68 to your computer and use it in GitHub Desktop.
Open Youtube video in Y2mate and autosave it in best quality

Requirements

  • Google Chrome with latest version (mine is: 94).

Maybe:

  • Microsoft Windows 10 (mine is: 20H2);
  • NodeJS (mine is: v16).

How to use

Deploying

  1. Go to https://caiorss.github.io/bookmarklet-maker/;
  2. Paste code from "Open_in_y2mate.js";
  3. Click "Generate Bookmarklet" button;
  4. Ctrl+Shift+B to show bookmarks bar;
  5. Create bookmark in Google Chrome (with any name, example: "OPEN+SAVE IN WBM");
  6. In "URL" field insert code from https://caiorss.github.io/bookmarklet-maker/.

Using

  1. Go to video on "https://www.youtube.com/", that you want to open to y2mate (example: "https://youtu.be/UUw8i7k1mwc");
  2. Click on bookmarklet first time, this will redirect you to y2mate (clipboard content will be NOT be replaced);
  3. Click on bookmarklet secong time, this will automatically insert the link (if none present), and launch y2mate save sequence.

Tools and inspiration

https://caiorss.github.io/bookmarklet-maker/

https://mrcoles.com/bookmarklet/


License

MIT 2021 Gesugao-san


javascript: (function() {
console.log("[\"Y2mate\" bookmarklet][log]\nStatus: script starts executing.");
const YoutubeSites = ["https://www.youtube.com/", "https://youtu.be/"];
if (!WBMsites.includes(this.document.location.href)) {}
return false;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment