Rotten Tomatoes info on IMDb

Fetches review count and average review score from Rotten Tomatoes

< Feedback on Rotten Tomatoes info on IMDb

Review: Good - script works

§
Posted: 2021-07-01

For the new IMDB layout add this code after line 87

    //new layout
    const nav = document.querySelector(
      '[data-testid="hero-subnav-bar-topic-links"]'
    );
    if (!nav) {
      return;
    }

    const li = document.createElement("li");
    li.classList.add("ipc-inline-list__item");
    li.appendChild(link);

    nav.appendChild(li);
    //end of new layout
§
Posted: 2021-07-01

It's Frankenstein coding but it works.

vacuumAuthor
§
Posted: 2021-07-04

Well, thanks for fixing my code for me. I posted a new version which should hopefully work for a while.

§
Posted: 2021-07-04

Thanks for updating <3

Post reply

Sign in to post a reply.