29 october 2025

Bookmarklets

These are my bookmarklets. Bookmarklets are bookmarks that contain scripts that run in context of the current instead of URLs.

To use any of these bookmarklets, create a bookmark in your browser toolbar, and put script inside url field. Then you can use it via pressing this bookmark.

Pass youtube adblocker blocker

javascript: (function () {
  var url = window.location.href;
  var match = url.match(/watch\?v=([a-zA-Z0-9_-]+)/);
  if (match) {
    var videoId = match[1];
    var embedUrl = 'https://www.youtube.com/embed/' + videoId;
    window.location.href = embedUrl;
  } else {
    alert('Not a valid YouTube watch URL.');
  }
})();

Pass paywalls

javascript: (function () {
  window.open(
    'https://archive.is/?run=1&url=' + encodeURIComponent(window.location.href),
  );
})();