Skip to content

Instantly share code, notes, and snippets.

@IMcPwn
Last active August 6, 2017 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IMcPwn/8520db0f8bcb34accbe99b668b50340f to your computer and use it in GitHub Desktop.
Save IMcPwn/8520db0f8bcb34accbe99b668b50340f to your computer and use it in GitHub Desktop.
Userscript to hide the Crunchyroll Thumbnails at the bottom of the player which may contain spoilers.
// ==UserScript==
// @name Hide Crunchyroll Thumbnails
// @namespace https://imcpwn.com
// @description Hide the Crunchyroll Thumbnails at the bottom of the player which may contain spoilers.
// @version 1.0.0
// @author Carleton Stuberg
// @copyright 2016+, Carleton Stuberg
// @license MIT; http://opensource.org/licenses/MIT
// @include http://www.crunchyroll.com/*
// @run-at document-end
// @grant none
// ==/UserScript==
//==[ History ]======================================================
// 1.0.0 - Initial release.
//===================================================================
//-------------------------------------------------------------------
// main() - Runs after page is done loading.
//-------------------------------------------------------------------
function main() {
// Clear the src (image) of all items wil class ".mug" (should just be the thumbnails).
for (let thumb of document.querySelectorAll('.mug')) thumb.src = '';
}
//-------------------------------------------------------------------
// Run main() upon load.
//-------------------------------------------------------------------
if (document.readyState === 'complete')
main();
else
window.addEventListener("load", main, false);
@mamochan
Copy link

mamochan commented Aug 6, 2017

nice thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment