diff options
Invidious link replacer now doesn't break functionality of some buttons
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | youtube-invidious-link-replacer.js | 4 |
diff --git a/youtube-invidious-link-replacer.js b/youtube-invidious-link-replacer.js index c1fbea5..1348eac 100644 --- a/youtube-invidious-link-replacer.js +++ b/youtube-invidious-link-replacer.js @@ -2,7 +2,7 @@ // @name YouTube to Invidious video link replacer // @description Replace video links in the youtube site to their Invidious equivalents // -// @version 1.0 +// @version 1.1 // @license MIT // @author Syndamia // @@ -71,7 +71,7 @@ function disableCertainClickEventListeners() { * (a){a.target===this.liveBadge.element&&(this.api.seekTo(Infinity),this.api.playVideo())} * don't play a direct role in the click video -> open player process. */ - if (handler.toString().indexOf('c', 7) === 9) { + if (handler.toString().indexOf('c', 7) === 9 && this.tagName !== 'YT-ICON-BUTTON') { // The second condition allows some buttons to work return; } } |
