Last active
February 19, 2020 17:25
-
-
Save gavinblair/a8416bb73a78953c31499f05f957be93 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This bookmarklet takes you to a random screen grab of a random movie. | |
Press it once to go to the movie listing. | |
Press it a second time to go to a random movie. | |
Press it a third time to go to a random part of the movie. | |
Press it one last time to go to a random screencap of that part of the movie. | |
To install, add a bookmark and use the following as the URL: | |
javascript: if(!window.location.href.startsWith("https://movie-screencaps.com/")) { window.location = "https://movie-screencaps.com/movie-directory/"; } if(window.location.href == "https://movie-screencaps.com/movie-directory/") { var movies = jQuery('.links a'); var movie = movies[Math.round(Math.random() * (movies.length + 1))]; movie.click(); } var parts = window.location.href.split('/'); if(window.location.href != "https://movie-screencaps.com/movie-directory/" && window.location.href.startsWith("https://movie-screencaps.com/") && parts[4] == "") { var page = jQuery('.paginate:first option[value='+Math.round(Math.random() * jQuery('.paginate:first option').length + 1)+']').val(); window.location = window.location.href + page; } if(window.location.href != "https://movie-screencaps.com/movie-directory/" && window.location.href.startsWith("https://movie-screencaps.com/") && parts[4] != "") { var thumbs = jQuery('.thumb'); var thumb = thumbs[Math.round(Math.random() * (thumbs.length + 1))]; thumb.click(); } | |
To use, click the bookmark several times until you get to an image. | |
Optional (and the reason I create this) - Draw the image quickly and repeat! | |
Works on Chrome on my Macbook. This doesn't seem to work on Chrome on iOS. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment