Commit Graph

93 Commits

Author SHA1 Message Date
codebicycle
56d982f8b3 Merge branch 'master' into dev
# Conflicts:
#	inject.js
#	manifest.json
2017-07-22 08:17:41 +03:00
codebicycle
c8768bbdb5 Replace innerHTML 2017-07-22 00:26:10 +03:00
Ilya Grigorik
5472786b19 add logic and check for init-once
closes #230, kudos to @xftroxgpx for the detective work and patch.
2017-07-04 23:41:10 +02:00
Ilya Grigorik
18455d521f move controller check into initialization 2017-07-04 23:41:10 +02:00
Ilya Grigorik
7ea778d3ec special-case inject prototype for FB and amazon
Some sites inject overlays over their videos to intercept clicks and
provide own on-screen controls, etc. Unfortunately this makes the VC
controls inaccessible and without any generic workaround... well, short
of relying on keyboard shortcuts.

This is an experiment for special-casing FB and Amazon
- FB we modify stacking context of the parent
- Amazon we inject the controller one level higher, above the overlay

The gotcha here is that this type of behavior is not uncommon, and
special-casing each and every origin like this is not long-term
sustainable. If this sticks.. we'll have to be very selective
about which sites we enable this for.

Closes #210
Closes #134
2017-06-26 18:37:48 +02:00
Can Arslan
704b3b42c5 Not updating speed correctly #214 (#220)
I tested for several times with/without throttling in different videos and nothing effected/no console error and fixed issue.
2017-06-25 12:15:51 -07:00
Ilya Grigorik
0f5f6c3aab refactor "reset speed" functionality 2017-05-25 20:48:00 -04:00
canarslan12
735785fd06 #217 - Reverting Preferred Speed 2017-05-25 20:48:00 -04:00
canarslan12
427a19fb74 suggestion #216 - Reset use fastSpeed initially (#218) 2017-05-24 08:56:08 -07:00
Ilya Grigorik
27b6898be6 Revert "use mouse wheel scroll to increase/decrease speed" (#211) 2017-05-04 22:29:59 -07:00
codebicycle
979df5c564 Revert pull request #188 from metaist/master
use mouse wheel scroll to increase/decrease speed

Not working in Firefox
2017-04-20 20:33:52 +03:00
codebicycle
228834cec7 Merge branch 'master' into update
# Conflicts:
#	manifest.json
2017-04-20 19:18:00 +03:00
J. B. Rainsberger
b3db296c0a Playback at "fast" speed (#203)
Added new custom key ("G") to jump to a favorite "fast speed", which is also configurable.
2017-04-17 22:03:29 -07:00
Ilya Grigorik
7437c3a2c9 Merge pull request #188 from metaist/master
use mouse wheel scroll to increase/decrease speed
2017-04-16 17:09:32 -07:00
xftroxgpx
d36a82eea5 speed inc. from 0.06 to 0.10 not 0.16, fixes #198 2017-04-11 12:54:38 +02:00
The Metaist
02b2da0f97 use mouse wheel scroll to increase/decrease speed 2017-03-16 10:19:14 -04:00
codebicycle
e38d2e3544 Fix reset playback speed 2017-02-06 15:40:24 +02:00
codebicycle
1c57bb68d6 Merge branch 'master' into webextensions-port
# Conflicts:
#	inject.js
2017-02-06 12:11:27 +02:00
codebicycle
54f892dacf Fix draggable 2017-02-06 11:43:03 +02:00
codebicycle
10e2c08e82 Fix control buttons 2017-02-06 11:23:24 +02:00
codebicycle
2adfb92d3b Replace chrome.extension.sendMessage with chrome.runtime.sendMessage 2017-02-06 09:33:56 +02:00
Sina Siadat
472d84471e save and restore resetSpeed using chrome storage
Fixes #169, again.
2017-02-01 13:30:53 +03:30
Sina Siadat
9f00b5bec1 make reset key toggle between 1x and last speed
Fixes #169
2017-01-29 03:03:08 +03:30
Ilya Grigorik
d94f3cc58a set minimum speed to 0.0625
Values below this threshold break some players - closes https://github.com/igrigorik/videospeed/issues/166.
2017-01-22 13:22:37 -08:00
Ilya Grigorik
70147ea97a force controller visibility on mouse input
Closes https://github.com/igrigorik/videospeed/issues/160.
2017-01-02 22:28:49 -08:00
Ilya Grigorik
4a3d170f84 new option to hide controller by default
When enabled controller visibility in 'manual' mode: to hide/unhide the
user needs to use the configured shortcut keys.

Closes https://github.com/igrigorik/videospeed/issues/156.
2016-12-22 17:13:48 -08:00
Ilya Grigorik
05790085ff clear dataset ID when removing controller
closes #155.
2016-12-06 19:30:09 -08:00
Ilya Grigorik
e8f9a1813b fix and simplify drag position calculation 2016-12-04 11:52:45 -08:00
Ilya Grigorik
db314ef520 don't reinitialize active controllers 2016-11-29 08:55:19 -08:00
codebicycle
58429f5878 WebExtensions port Minimum Viable Product. Works in Firefox
- comment out chrome.extension.sendMessage
- rename chrome.storage.sync to chrome.storage.local
- remove createShadowRoot
- add reload_once function
2016-11-08 16:19:46 +02:00
Andrew Marshall
7e0ca9c97c fix double controller on Coursera 2016-09-01 01:09:52 -05:00
Markus Jarderot
3b2139d2d7 Prevent intercepting typing in a textarea. 2016-08-27 22:37:04 +02:00
Ilya Grigorik
158039aaa9 fix the twitter blacklist default (no www) 2016-08-16 17:10:52 -07:00
Ilya Grigorik
221d107246 drop initialization flag on removed node
If the node is reattached later we want to rerun the initialization
logic to rebuild the controller.

Closes #135.
2016-08-16 17:04:29 -07:00
Ilya Grigorik
23813d3f15 fix black overlay on openai.com
Closes #130.
2016-07-29 11:01:43 -07:00
Ilya Grigorik
5949616238 Merge branch 'master' of github.com:igrigorik/videospeed 2016-07-29 10:43:24 -07:00
Ilya Grigorik
1784ea9f61 Merge branch 'drag-controller' of https://github.com/arao456/videospeed into arao456-drag-controller
Some cleanup + refactoring.
2016-07-28 23:30:42 +02:00
Ilya Grigorik
e01b7d7d29 Merge pull request #110 from wesbos/patch-1
Check for document before checking for readyState
2016-07-28 16:14:13 +02:00
Ilya Grigorik
c2878027bf ignore modifier keys (except Shift)
closes #125
2016-07-28 16:05:14 +02:00
Ilya Grigorik
3cadcb5463 shortcut to hide/show controller
If manual control is used we override default youtube autohide behavior
and yield control to the user.

Closes #104, #123.
2016-07-28 15:27:36 +02:00
Ilya Grigorik
fce4d611b8 add user defined blacklist
Moving some of the previously blacklisted sites to user controlled
blacklist. Remaining sites in manifest are blocked due to interop
issues.

Closes #121.
2016-07-28 13:28:40 +02:00
Ilya Grigorik
707c0c3f16 remove controller when video is removed from DOM
Closes #119.
2016-07-20 22:55:51 -07:00
Arjun Rao
d09f9a0019 Add ability to drag controller 2016-06-26 01:44:48 -07:00
rajuGT
e251a2819c Removed default parameter value initialization to support old version browsers 2016-06-24 02:24:25 +05:30
OutOfBrain
a59de27136 fix NodeList missing foreach in some browsers 2016-06-19 23:52:16 +02:00
Wes Bos
6d2a942dd2 Check for document before checking for readyState 2016-06-13 11:32:10 -04:00
Ilya Grigorik
1342d5bb06 YT fix: show on keyboard input 2016-06-09 22:55:39 -04:00
Ilya Grigorik
a2055f9d3e check typeof node in MutationObserver 2016-06-09 18:23:54 -04:00
Ilya Grigorik
b0547496c9 refactor, wrap controller within shadowroot 2016-06-09 18:23:54 -04:00
Ilya Grigorik
fe0ad6d861 use MutationRecord's target as fallback for parent 2016-05-31 22:20:01 -07:00