machawk1 / Mink

Chrome extension that uses Memento to indicate that a page a user is viewing on the live web has an archived copy and to give the user access to the copy
MIT License
49 stars 3 forks source link

Dropdown inappropriately appears on pages where the drilldown is already present #324

Closed machawk1 closed 3 years ago

machawk1 commented 3 years ago

e.g., ufl.edu

Current main branch 278f6d2ef0920d7161cb6ce4f11a0a439ba5affd

Screen Shot 2021-07-02 at 3 46 43 PM

machawk1 commented 3 years ago

The hidden class name is never attributed in the above URI-R (14k+ mementos), cf. inquirer.com (16k+ mementos) where the dropdown does not display, as appropriate.

machawk1 commented 3 years ago

This might be due to the target web page having a dropdown class and the selector in Mink not being specific enough.

machawk1 commented 3 years ago

Per MDN, document.querySelector() returns the first element and therein might be the issue.