Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--youtube-invidious-link-replacer.js4
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;
}
}