Last active
August 6, 2017 20:02
-
-
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.
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
// ==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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nice thanks!!!