diff --git a/src/Info.plist b/src/Info.plist
index a4d355a..bf24b4a 100644
--- a/src/Info.plist
+++ b/src/Info.plist
@@ -92,6 +92,8 @@
*.stream.cz
streamable.com
*.streamable.com
+ ted.com
+ *.ted.com
theonion.com
*.theonion.com
twitch.tv
diff --git a/src/scripts/main.js b/src/scripts/main.js
index bb35324..35d7d5a 100644
--- a/src/scripts/main.js
+++ b/src/scripts/main.js
@@ -703,6 +703,26 @@ const resources = {
},
},
+ 'ted': {
+ buttonClassName: 'z-i:0 pos:r bottom:0 hover/bg:white.7 b-r:.1 p:1 cur:p',
+ buttonElementType: 'div',
+ buttonInsertBefore: function(/** Element */ parent) {
+ return parent.lastChild;
+ },
+ buttonParent: function() {
+ const playButton = document.querySelector('[aria-controls="video1"]');
+ return playButton.parentElement.parentElement;
+ },
+ buttonDidAppear: function() {
+ const img = button.querySelector('img');
+ img.classList.add('w:2');
+ img.classList.add('h:2');
+ },
+ videoElement: function() {
+ return document.querySelector('video[id^="ted-player-"]');
+ }
+ },
+
'theonion': {
buttonClassName: 'jw-icon jw-icon-inline jw-button-color jw-reset jw-icon-logo',
buttonElementType: 'div',