snippets.zerodogg.org

Letterboxd store bookmarklet

Single movie

This bookmarklet will open up the current movie on letterboxd in various stores.

Search for movie

Change the URLs array to modify which store(s) are searched.

((document) => {
  const name = document.querySelectorAll(
    "#featured-film-header > h1,.film-title-wrapper > a",
  )[0].innerText;
  const URLs = [
    "https://www.platekompaniet.no/search/?filter.Facets[topcategoryname]=BLU-RAY+%26+4K&filter.Facets[topcategoryname]=DVD&q=",
    "https://www.finn.no/bap/forsale/search.html?product_category=2.86.3922.100&product_category=2.86.3922.102&sort=RELEVANCE&q=",
    "https://www.ebay.co.uk/sch/617/i.html?_from=R40&LH_TitleDesc=0&_sop=15&_nkw=",
  ];
  for (const URL of URLs) {
    window.open(URL + encodeURIComponent('"' + name + '"'));
  }
})(document);

A list

Change the URL in window.open() if you want to open another store.

Platekompaniet

List: Search Platekompaniet

((document) => {
  const movies = document.querySelectorAll(
    ".poster.film-poster"
  );
  for(const movie of movies)
  {
    const year = Number.parseInt(movie.getAttribute('data-film-release-year'));
    const name = movie.getAttribute('data-film-name');
    const yearRangeMinus = year-1;
    const yearRangePlus = year+1;
    window.open('https://www.platekompaniet.no/search?query='+encodeURIComponent(name)+'&hierarchicalMenu%5Bcategories.level0%5D=Film+%26+TV&range%5Bproduction_date%5D%5Bmin%5D='+yearRangeMinus+'&range%5Bproduction_date%5D%5Bmax%5D='+yearRangePlus);
  }
})(document);

Finn.no

((document) => {
  const movies = document.querySelectorAll(
    ".poster.film-poster"
  );
  for(const movie of movies)
  {
    const name = movie.getAttribute('data-film-name');
    window.open("https://www.finn.no/bap/forsale/search.html?product_category=2.86.3922.102&product_category=2.86.3922.100&q="+encodeURIComponent('"'+name+'"'));
  }
})(document);