-
Notifications
You must be signed in to change notification settings - Fork 12
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
Proposed enhancements #28
Comments
@Procyon-b As always, thanks very much, and my apologies for the delay in reviewing! I added a PR (#31) for dyn-sites and am trying it out. I would like to look at that first, then move on to dyn-whitelist. I have an update and two comments:
Please let me know your thoughts, either here or on the PR. Thanks! |
@cxw42 No need to apologize. ;)
Let me explain why I ended with a messy code for handling the dynamic site list. When I first tried the logic of MutationObserver I had the list hardcoded in the background page. And the idea was to keep it that way for the end user. All this is also the reason why the userscript is the file where my modifications are cleaner and more straightforward (I think). |
The revised code is now available. The source code is now smaller and cleaner. |
@gregsadetsky @cxw42
I have created 2 more branches in my fork.
The first one, dyn-final
dyn-sites, implements the handling of "dynamic sites" with a mutation observer. I call dynamic sites, sites that create their form elements dynamically. These forms can't be fixed by the userscript if it doesn't watch for modifications of the DOM tree.Since this is hostname specific, and user defined, a background page and options page have been added
A second branch, dyn-whitelist, adds support for whitelisting a domain (only for a duration of 90 seconds). Apart from an new popup.html page, the background and userscript are only very lightly modified to handle this.
Examples of dynamic site:
The text was updated successfully, but these errors were encountered: