diff --git a/src/content/components/common/follow.js b/src/content/components/common/follow.js index 2a55ea3..63ce603 100644 --- a/src/content/components/common/follow.js +++ b/src/content/components/common/follow.js @@ -5,7 +5,7 @@ import * as dom from 'shared/utils/dom'; const TARGET_SELECTOR = [ 'a', 'button', 'input', 'textarea', 'area', '[contenteditable=true]', '[contenteditable=""]', '[tabindex]', - '[role="button"]' + '[role="button"]', 'summary' ].join(','); @@ -155,6 +155,7 @@ export default class Follow { case 'textarea': return element.focus(); case 'button': + case 'summary': return element.click(); default: if (dom.isContentEditable(element)) { diff --git a/test/content/components/common/follow.html b/test/content/components/common/follow.html index eb0decd..b2a2d74 100644 --- a/test/content/components/common/follow.html +++ b/test/content/components/common/follow.html @@ -8,5 +8,10 @@