From 6fe95288e9a929dfaf94fb67969ebcb6b759e28e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 8 May 2020 17:32:35 +0200 Subject: Remove old development comments Old notes while I was working out elements and selectors to use. --- src/fullscreen_credits.ts | 13 ------------- src/watch_credits.ts | 4 ---- 2 files changed, 17 deletions(-) (limited to 'src') diff --git a/src/fullscreen_credits.ts b/src/fullscreen_credits.ts index 9844bb3..edd8a8f 100644 --- a/src/fullscreen_credits.ts +++ b/src/fullscreen_credits.ts @@ -14,21 +14,8 @@ function init_mutation_observer (player) { // Activate player controls. player.click(); - // TODO: Change .active to .inactive - // mutation.target.classList.replace('active', 'inactive'); // Didn't work - // Remove .can-resume: Removes white border on hover - // PlayerControlsNeo__bottom-controls PlayerControlsNeo__bottom-controls--faded - // PlayerControlsNeo__layout PlayerControlsNeo__layout--active - // PlayerControlsNeo__layout PlayerControlsNeo__layout--inactive - - // document.querySelector('.PlayerControlsNeo__bottom-controls') - // .classList - // .add('PlayerControlsNeo__bottom-controls--faded'); - controls.hide(); - // .OriginalsPostPlay-BackgroundTrailer .BackToBrowse - return; } } diff --git a/src/watch_credits.ts b/src/watch_credits.ts index 3aba520..99c67ca 100644 --- a/src/watch_credits.ts +++ b/src/watch_credits.ts @@ -3,10 +3,6 @@ import logger from './logger'; import wait_element from './wait_element'; -// const watch_credits_button = document.querySelector('[data-uia="watch-credits-seamless-button"]'); - - - function init_mutation_observer (controls) { var observer = new MutationObserver(function(mutation_list) { for (var i = 0; i < mutation_list.length; i++) { -- cgit v1.2.3