Commit Graph

153 Commits

Author SHA1 Message Date
codebicycle
86545a6a34 Merge upstream 0.6.3 2021-02-06 10:01:27 +02:00
Aristotelis Dossas
732e07e30d Replace onLoad with addEventListener
Addresses #16
2020-04-22 17:32:31 +03:00
codebicycle
3a289e30aa Remove getShadow() 2020-04-09 22:50:32 +03:00
cristiancundari
44fda63a53 Fixing #609 2020-03-28 16:46:57 +01:00
Chad Bailey
b4f6bcc292 Removed redundant rateChanged() function 2020-03-08 19:19:56 -05:00
Chad Bailey
c32eec1bb2 Moved ratechange listener into its own function
Placed call for adding listener after call to document ready/disabled check
Placed setupListener within try/catch block
2020-03-07 18:23:55 -06:00
Chad Bailey
ff3ea3113b Added logging function and logging entries
Moved all on ratechange logic to document level listener
Removed dead .getSpeed method
Fixed bug causing controller to sometimes initialize with NaN
2020-03-06 22:44:01 -06:00
Chad Bailey
73d5673031 Fixed issue preventing last speed from being properly stored 2020-03-06 19:59:04 -06:00
Chad Bailey
00781ceaa3 Moved logic in rate change event listener into its own function to be triggered by setSpeed() 2020-03-05 19:08:30 -06:00
Chad Bailey
dde52368a2 Far better fix now utilizes a short cooldown window after issuing a speed change command 2020-03-03 22:58:13 -06:00
Chad Bailey
9b8f9dfbae Added ratechange blocklist to fix #72 #521 and #584 2020-03-01 22:11:55 -06:00
Jonathan Dawson
b5c48abfce check if aria-hidden exists before seeing if its value is false. 2020-02-28 12:37:35 -06:00
Jonathan Dawson
9920b80801 big performance gains by deleting .concat and adding in .push and .flat! 2020-02-28 12:30:02 -06:00
Chad Bailey
eaf5ac47f3 A few small fixes #586 (#591)
* Trimmed trailing whitespace
* Fixed erroneous newline at beginning of blacklist
* Fixed erroneous instructions for adding remote in contribution guide (Fixes #586)
2020-02-15 14:11:57 -08:00
Chad Bailey
55500fc010 Feature/578 prettier.io formatting (#585)
* Reformatted codebase using prettier.io (should not change functional behavior)
* Formatted README.md, added CONTRIBUTING.md, .prettierrc configuration file, and installed pre-commit hook
2020-02-08 23:26:10 +01:00
jedawson
4ac2e458f5 Apple tv plus (#541)
* add support for traversing shadowRoot's; enables apple tv support.
2020-02-06 14:07:33 -08:00
Timothy Lim
23591c6077 Check for both .src and .currentSrc in mutation (#567) 2019-12-26 11:32:49 -05:00
Chad Bailey
ac7471edfc Allow regex in blacklist fixes #167 #542 (#546)
* Allow regex in blacklist fixes #167 #542
* Added protection against invalid regex causing failed initialization
* Added regex input validation
2019-11-25 13:43:05 -08:00
jacobcolbert
17bff8affb Check target of keyEvent instead of activeElement for text editability 2019-11-19 01:58:01 -05:00
Yang
ac53d3ea2b Adding feature - Show the controller briefly when adjusting speed and the controller is set to hidden. (#538)
Adding new feature: when the controller is hidden and the user changes rate, show the controller briefly. A new action called `blink` is added, and is called when the rate changes. Then if the controller is hidden, remove `vsc-hidden` and add it back after `value` millisecends.
2019-11-13 22:55:25 -08:00
jacobcolbert
ec9f3f6d20 Merge pull request #533 from thewheat/show-hide-controller-disable-website-keybinds
Add ability to disable website keybindings for show/hide controller (Fixes: #526)
2019-10-20 15:38:26 -04:00
Timothy Lim
c3f44db1bf Add ability to enable/disable from toolbar (#528)
* Add ability to enable/disable from toolbar
2019-10-18 21:28:52 +02:00
Timothy Lim
29788ba82a Make shortcuts consistent 2019-10-18 20:05:58 +08:00
Timothy Lim
823a24475c Add ability to disable website keybindings for show/hide controller 2019-10-11 17:29:55 +08:00
Timothy Lim
49e9f4b78d Use .currentSrc instead of .src to correctly identify video (#529) 2019-10-05 16:54:11 -07:00
Joe Lencioni
5641369385 Add teams.microsoft.com to default blacklist (#495)
Microsoft Teams is used for video conferencing, and this extension
causes all of the videos to be half cut off. I think it would be a good
idea to add it to the default blacklist.
2019-08-03 11:09:23 -07:00
Gabriel Mawhinney
e84878d215 Add feature to change controller opacity (#478)
* Add option for changing controller opacity
2019-05-21 21:23:22 -07:00
jacobcolbert
568282a106 Use built in pause() and play() (#475)
Fix #474 and #428
2019-05-18 07:56:39 -07:00
jacobcolbert
d8965f644c Add feature to jump to marker (#471)
* Add options for setting marker and jumping to marker
* Correct "mute" to "muted"
2019-05-05 21:41:16 -07:00
jacobcolbert
e91b4c9cdb Fix whitespace issue in blacklist (#472)
* Change regex to no longer merge on blank lines
2019-05-05 21:38:12 -07:00
jacobcolbert
e6835f39ff Hide controller for videos with no source (#467)
* Check for source upon initialization
* Hide controllers for videos with no source.
  - Create a MutationObserver for each video to watch for source changes.
2019-05-04 09:26:43 -07:00
jacobcolbert
04eaa51cda Fully remove videoController on video removal (#469)
* Check if video is part of DOM before removing
* Fully remove controller when video is removed
 - Remove eventListeners registered by controller when deleted. 
 - Store reference to functions to allow this
* Give each videoController object a reference to the visible controller div
2019-05-01 23:06:06 -07:00
Ilya Grigorik
2310423c94 cleanup formatting + comments 2019-04-26 21:38:18 -07:00
jacobcolbert
3c133810b9 Let each controller can track its own speed (#463)
Prevent source changes from changing speed in same video container.
2019-04-26 21:32:18 -07:00
jacobcolbert
4b112362f4 Check that controller still exists before showing (#452)
* Check that controller still exists before showing
2019-04-26 21:30:53 -07:00
jacobcolbert
a159fa4013 Update the tc.settings.speed on rateChange (Fix #455) (#458)
* Update the tc.settings.speed on rateChange (Fix #455)
* Refactor speed to lastSpeed
2019-04-24 19:47:50 -07:00
jacobcolbert
5fec357d2e Add support for audio (#454)
* Add speed controler for audio
* Add additional checks for audioBoolean
* Change video to media
2019-04-21 07:43:54 +09:00
Ilya Grigorik
7bfa8a9985 cleanup formatting 2019-04-19 23:20:34 +09:00
jacobcolbert
005fceac83 Fix issue where youtube resets speed when fullscreen (#447)
* Fix issue where youtube resets speed
Track the speed of a video based on its source at time of last
ratechange. Newly initialized videos with same source automatically
will use the same speed as previous video with that source.

* Make controller button press only affect that controller
* Remove deprecated settings
* Initialize speed on Play if not yet initialized
2019-04-19 23:14:48 +09:00
Ilya Grigorik
da52cde172 update min/max references, closes #409 2019-04-18 23:25:30 +09:00
fent
f11a257de3 fix detecting video on plex (#434) 2019-02-26 21:12:25 -08:00
Ilya Grigorik
5972cbdd22 remove sendMessage wrapper
Discussion: https://github.com/igrigorik/videospeed/issues/339
2019-02-17 11:39:21 -08:00
Can Arslan
7c633f3986 Ignore key event without vsc (#405)
It was causing problem with force disable key bindings and it will fix it.
2018-12-15 09:25:20 -08:00
Can Arslan
e24b95dd84 Allow user to define custom shortcuts #347 (#399)
- Over-all working structure changed
- tc.settings.keyBindings array added
- Options page changed
Clean up of #350
2018-12-11 22:31:44 -06:00
Can Arslan
8547a95a16 Fix for Chrome 71 touch events bug (#397)
* Fix for Chrome 71 touch events bug

Fixes #389, #396, #395, #394 (duplicates)
Also fixes #213 video control panel disappears sometimes after click which was caused by double clicking was canceling. this issue was most commented issue.

* Update inject.js
2018-12-11 22:03:50 -06:00
Rongjian Zhang
86ccce0a86 fix: replace deprecated createShadowRoot with attachShadow (#386)
fix #384
2018-11-05 11:43:46 -05:00
Can Arslan
4e96e57e7d Update inject.js (#346) 2018-06-16 09:39:46 -07:00
Ilya Grigorik
1718872d98 fix missing function keyword 2018-05-18 12:04:38 +01:00
Can Arslan
bcf3a0716f unclickable overlay fix on reddit video - #315 (#325)
* Overlay on reddit fix - #315 
 - not fixing "in the middle of the video" part
2018-05-15 05:42:22 -07:00
Can Arslan
e84e19069d fixes #332 with adding keydown listener to parent (#334)
fixes #332
this adds keydown listener to parent document if there is one.
it does not use background files which uses unnecessary ram
2018-05-15 00:20:42 -07:00