Skip to content

Instantly share code, notes, and snippets.

@Gesugao-san
Last active June 21, 2024 10:20
Show Gist options
  • Save Gesugao-san/4d70316e9a25b126429035ba90670685 to your computer and use it in GitHub Desktop.
Save Gesugao-san/4d70316e9a25b126429035ba90670685 to your computer and use it in GitHub Desktop.
Open in WBM (v2.0, bookmarklet)

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 WBM (v2).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 website, that you want to save to WBM (example: "https://steamdb.info/freepackages/");
  2. Click on bookmarklet first time (WARNING! Clipboard content will be replaced!), this will redirect you to WBM page;
  3. Click on bookmarklet secong time, this will automatically insert the link, toggle checkboxes and launch WBM save sequence.

Tools and inspiration

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

https://mrcoles.com/bookmarklet/


Uses

https://stackoverflow.com/q/11292786;

https://stackoverflow.com/a/8206573;

https://stackoverflow.com/a/11604414;

https://stackoverflow.com/a/26370667;

https://stackoverflow.com/a/59556399;

https://stackoverflow.com/a/18455088;

https://alligator.io/js/async-clipboard-api/;

https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/String/slice;

https://developer.mozilla.org/ru/docs/Web/API/Document/getElementsByClassName;

https://stackoverflow.com/a/3822931;

https://www.w3schools.com/jsref/jsref_includes_array.asp;

https://stackoverflow.com/q/34780030;

https://stackoverflow.com/q/15694470;


To read or use soon

https://gist.github.com/caseywatts/c0cec1f89ccdb8b469b1#gistcomment-2250172;

https://stackoverflow.com/q/49523946;

https://stackoverflow.com/a/26370667;

https://stackoverflow.com/a/55818805;


License

MIT 2022 Gesugao-san


javascript:(() => {
return console.log("Moved to https://github.com/Gesugao-san/archive-wbm-save-addons");
})();
@Gesugao-san
Copy link
Author

Bug: on https://thepiratebay.org/index.html bookmarklet won't open WBM. 😢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment