Skip to content

Instantly share code, notes, and snippets.

@skratchdot
Last active August 25, 2025 02:42
Show Gist options
  • Save skratchdot/90ee09a09bf425bdfe7ae724b73f00a9 to your computer and use it in GitHub Desktop.
Save skratchdot/90ee09a09bf425bdfe7ae724b73f00a9 to your computer and use it in GitHub Desktop.

Revisions

  1. skratchdot revised this gist Aug 25, 2025. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions imdb-hide-watched-search-results.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    (() => {
    const style = document.createElement('style');
    style.innerHTML = `
    li:has(button[data-testid^="inline-watched-button-"][aria-pressed="true"]) {
    display: none;
    }
    `;
    li:has(button[data-testid^="inline-watched-button-"][aria-pressed="true"]) {
    display: none;
    }
    `;
    document.head.appendChild(style);
    })();
  2. skratchdot revised this gist Aug 25, 2025. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions imdb-hide-watched-search-results.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    (() => {
    const style = document.createElement('style');
    style.innerHTML = `
    const style = document.createElement('style');
    style.innerHTML = `
    li:has(button[data-testid^="inline-watched-button-"][aria-pressed="true"]) {
    display: none;
    }
    `;
    document.head.appendChild(style);
    document.head.appendChild(style);
    })();
  3. skratchdot created this gist Aug 25, 2025.
    10 changes: 10 additions & 0 deletions _imdb-hide-watched-search-results.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # imdb bookmarklet: hide watched search results

    on a page like:
    - https://www.imdb.com/search/title/?title_type=feature

    click the following bookmarklet to hide movies you've marked as watched:

    ```js
    javascript:(() => { const style = document.createElement('style'); style.innerHTML = ` li:has(button[data-testid^="inline-watched-button-"][aria-pressed="true"]) { display: none; } `; document.head.appendChild(style); })();
    ```
    9 changes: 9 additions & 0 deletions imdb-hide-watched-search-results.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    (() => {
    const style = document.createElement('style');
    style.innerHTML = `
    li:has(button[data-testid^="inline-watched-button-"][aria-pressed="true"]) {
    display: none;
    }
    `;
    document.head.appendChild(style);
    })();