Skip to content

Commit

Permalink
Fix articles showing cookie information in reader mode (mozilla#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
tthhtao authored Jan 19, 2023
1 parent 835d086 commit e6ee917
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Readability.js
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,12 @@ Readability.prototype = {
continue;
}

// User is not able to see elements applied with both "aria-modal = true" and "role = dialog"
if (node.getAttribute("aria-modal") == "true" && node.getAttribute("role") == "dialog") {
node = this._removeAndGetNext(node);
continue;
}

// Check to see if this node is a byline, and remove it if it is.
if (this._checkByline(node, matchString)) {
node = this._removeAndGetNext(node);
Expand Down

0 comments on commit e6ee917

Please sign in to comment.