Skip to content

Instantly share code, notes, and snippets.

@garyhtou
Last active September 8, 2020 19:18
Show Gist options
  • Save garyhtou/205ac429181d5979949340e99da77c12 to your computer and use it in GitHub Desktop.
Save garyhtou/205ac429181d5979949340e99da77c12 to your computer and use it in GitHub Desktop.
Dropbox: Only show videos

Dropbox: Only show videos

  1. You must be in grid view
  2. Open up the Browser Console/Devtools
  3. Run the following:
    var cells = document.querySelectorAll(".sl-grid-cell");
    for (cell of cells) {
     if (
       cell
         .querySelector("a")
         .querySelector(".sl-grid-thumbnail-container")
         .querySelector(".sl-video-watermark") === null
     ) {
       cell.remove();
     }
    }
    if (document.querySelectorAll(".sl-grid-cell").length === 0) {
     var gridContainer = document.querySelector(".sl-grid");
     var message = document.createElement("h1");
     message.innerText = "Whoops! No videos found :(";
     gridContainer.appendChild(message);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment