Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functionality prototyping #2

Merged
merged 5 commits into from
Jan 1, 2017
Merged

Functionality prototyping #2

merged 5 commits into from
Jan 1, 2017

Conversation

swpease
Copy link
Owner

@swpease swpease commented Jan 1, 2017

Basic interaction with youtube user videos section established.

The listener fires my function immediately, so it completes before the
new videos in the list have finished loading. I added in a delay
(currently arbitrarily set to a safe 5000 ms), which *works*, but I
need to see how to fire it upon the modifications completing.
Added in a MutationObserver, which properly deals with changes to the
number of videos in the list of liked videos. Replaces the
EventListener for the “Load More” button.
The page successfully updates list vs grid view and populates the
add-on’s content, and disconnects when navigating away from the likes
page. BUT I need to get the liked videos’ MutaitonObserver to … figured
it out!
It still has a couple of potential issues (features?) - anywhere on
your own page, the script stays loaded, b/c apparently it only does
partial reloads within your own page.
Made pageObserver’s config an inline object, because only attributes is
affected.
@swpease swpease merged commit 508dce6 into master Jan 1, 2017
@swpease swpease deleted the functionality_prototyping branch January 1, 2017 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant