Commit Graph

263 Commits

Author SHA1 Message Date
83aef6ac79 #40: Settings persist over page reload 2018-08-21 23:48:47 +02:00
a5aa282a01 CSS watcher reimplemented, seems to be working (fix #43) 2018-08-21 00:48:15 +02:00
b3079a81ea #42: GlobalVars is gone. 2018-08-20 22:45:43 +02:00
da18f5a5c4 Extension at least starts now 2018-08-07 23:31:28 +02:00
966f8a034d Rewrote Settings.js, did some cleanup with legacy stuff. 2018-08-05 23:48:56 +02:00
09cc1816ad Cleanup 2018-08-02 23:24:22 +02:00
8ba028a5b2 git commit -am doesn't add new files 2018-07-19 23:05:57 +02:00
872bc4ece7 Some work on settings 2018-07-19 23:05:39 +02:00
335bcd64fc code cleanup 2018-07-16 22:34:32 +02:00
20576675ce Fixes for chrome 2018-07-16 22:30:52 +02:00
5ce0c51018 Fixed autodetection menu 2018-07-16 20:38:16 +02:00
9a058d18b7 Get ready 🅱️ois, it's happening. 3.0.0 is now officially out of alpha and in stable. 2018-07-15 16:35:08 +02:00
6c458d7590 fixed issue with video alignment not working 2018-07-15 16:22:32 +02:00
8579d25d5f fixed an issue where autodetection wouldn't sometimes trigger even when it should 2018-07-15 15:18:40 +02:00
30c94975c1 reenabled ghetto url check 2018-07-12 23:27:10 +02:00
43d1b02303 using basic stretching should pause aspect ratio autodetection 2018-07-11 23:13:40 +02:00
37b59f19ab Fixed aspect ratio flip-flopping in fallbackMode (kinda. it's a workaround) 2018-07-11 00:01:44 +02:00
0825dacdb8 fixed autodetection on netflix (and anywhere with fallbackMode, hopefully) 2018-07-10 21:58:26 +02:00
a4f0c9db4d basic stretch mode fixed 2018-07-10 20:36:12 +02:00
cf813cf6f8 Popup seems to be more or less fixed. 2018-07-09 23:30:11 +02:00
0eb70babf3 Popup: moved stretching settings to a new tab 2018-06-29 00:30:42 +02:00
029efd92ed Popup is now approximately functional 2018-06-28 23:43:52 +02:00
ea86721321 Fixed some minor bugs, rewrote some bits of the popup 2018-06-27 23:55:37 +02:00
c5debb40a7 Fixed basic stretching 2018-06-15 00:33:10 +02:00
3e787be684 Fixed the bug where extension didn't ignore binds when writing comments 2018-05-31 23:15:47 +02:00
8e1687a5b6 stretch mode is in stretcher now 2018-05-30 23:20:23 +02:00
9478b5af15 half of possibilities to stretch a video checked and working 2018-05-29 00:36:14 +02:00
2bf5a07bc5 started some work on stretcher 2018-05-28 23:56:44 +02:00
0871ad6d97 Stretch mode buttons work 2018-05-27 21:41:08 +02:00
293b784704 Popup: aspect ratio buttons are working. Fixed some bugs with crop calculation. 2018-05-27 01:29:02 +02:00
ba26db28ea CommsServer should now support frames (but we aren't quite sure yet) 2018-05-26 23:56:50 +02:00
dd319551bc Comms minimally functional again, with one ugly workaround. 2018-05-26 23:08:49 +02:00
e2d43fb46d Cropping video now uses scale() and translate() 2018-05-25 21:37:09 +02:00
f5035b933d applyConditionalStretch() now accepts factors and actualAr as arguments. 2018-05-24 23:50:46 +02:00
748ed8293d Fixed function calls in Resizer.js (zoom and stretcher). ApplyConditionalStretch, computeOffsets and applyCss are still TODO 2018-05-24 23:29:30 +02:00
547ef7ad7b Stretcher.js instanced, can calculate aspect ratio factors from aspect ratios alone 2018-05-24 22:49:32 +02:00
7d89f41e40 Moved keybinds options to ExtensionConf. Rewrote Keybinds in a bit more OOP way 2018-05-24 20:50:37 +02:00
0f8f842ec6 Forgot to save VideoData.js 2018-05-23 23:58:34 +02:00
8f201e1ee0 PageInfo can start and stop all periodic functions (to be implemented when switching tabs) 2018-05-23 23:57:51 +02:00
8d7cefd420 Scaler.js - calculateCrop() and modeToAr() no longer take 'video' and 'playerDimensions' as arguments, instead reading those properties from videoData 2018-05-23 00:34:18 +02:00
a7aef8856d PlayerData object gets destroyed when videoData does. Scaler now takes video from videoData instead of function arguments 2018-05-22 00:19:50 +02:00
69d665f6fd PageInfo: rescan doesn't compare found <video> elements to elements in destroyed VideoData objects, fixing the issue where autodetection broke upon visiting youtube's search page 2018-05-21 22:43:56 +02:00
42cf4d91e7 Fixed the problem where 'this' in ghettoWatcher() was 'window' instead of current object. 2018-05-20 23:31:05 +02:00
ad1436289b Fixed some problems with recursion in autodetection startup. Fixed problems with autodetection sometimes not starting. 2018-05-20 23:17:09 +02:00
009a440ce8 but really, now 2018-05-19 22:21:28 +02:00
c53780e619 If video doesn't have width or height, we do nothing. 2018-05-19 22:20:35 +02:00
08b10220e1 Scaler no longer static 2018-05-18 23:26:20 +02:00
c442f9e01c Fixed autodetection crash on drm-protected sites 2018-05-17 23:09:04 +02:00
4fe5ce6bcb Autodetection persists over multiple videos 2018-05-16 23:26:47 +02:00
82abee42bd autodetection works more or less properly. Removed some console.logs 2018-05-16 20:59:39 +02:00
4914a0dc1c video is now centered correctly 2018-05-16 20:42:00 +02:00
d38dee1a8a Autodetection gets detected and applied, but css is still off 2018-05-16 20:26:55 +02:00
17f330f242 Automatic aspect ratio detection runs, but applied css is garbage and everything crashes after first aspect ratio change. 2018-05-15 21:40:53 +02:00
dba655b7d3 EdgeDetect: findCandidates() and edgeDetect() work (according to DebugCanvas) 2018-05-15 20:36:22 +02:00
a106d0f468 Fixed syntax errors and errors with inexisting or improperly declared variables. Didn't fix things that make stuff not work tho 2018-05-14 20:39:15 +02:00
3686341677 rewrite finished to the point where extension doesn't outright crash. Nothing works, though. 2018-05-13 21:05:11 +02:00
0ac051d5d5 Resizer prepared to handle stretching and zooming 2018-05-13 15:22:28 +02:00
cbe250fabf All thigns related to player element have been moved to PlayerData (or at least most of them). 2018-05-13 13:49:25 +02:00
4e2ac9c647 Implemented zoom 2018-05-12 02:51:58 +02:00
4519d8854a EdgeDetect is now in edgeDetect 2018-05-12 01:51:43 +02:00
acc0455415 EdgeDetection partially moved to its own file 2018-05-11 00:49:50 +02:00
3bc356636e Fixed some silly mistakes 2018-05-10 22:35:38 +02:00
4ed361ca65 DebugCanvas converted to proper object. ArDetect not fixed yet 2018-05-10 22:22:58 +02:00
af0ad4c080 GuardLine (blackbar and image tests) moved to their own file) 2018-05-10 21:39:24 +02:00
Tamius Han
d39a070117 Some progress on frameCheck() (formerly _ard_draw_but_for_realz) 2018-05-09 00:58:50 +02:00
Tamius Han
a40f32908b ArDetect.js: processAr rewritten in ArDetector object 2018-05-09 00:34:22 +02:00
Tamius Han
2f6710586f ArDetect.start() was objectified 2018-05-09 00:03:22 +02:00
Tamius Han
36878921fb Starting to turn ArDetect into a proper class as well 2018-05-08 23:35:16 +02:00
Tamius Han
c7b6035c55 conditional stretching 2018-05-07 21:58:11 +02:00
Tamius Han
390348202e Moved functions that calculate video crop from Resizer.js to Scaler.js. Resizer.js is not fixed to account for this yet. 2018-05-06 21:32:18 +02:00
Tamius Han
befd331687 minor fixes 2018-05-05 23:19:42 +02:00
Tamius Han
c35a8c5f59 Added a safety thingy that disables autodetection if autodetection consistenly causes lag. 2018-05-05 23:06:39 +02:00
Tamius Han
081f8e968f added auto-disable if autodetection takes too long 2018-05-04 00:27:40 +02:00
Tamius Han
cdd533e093 think this should be good for release 2018-05-02 17:52:25 +02:00
Tamius Han
9a5f586eaf Fixes to aspect ratio detection: guardline/black line now works properly-ish. By accident also managed to correct the bug where aspect ratio detection was mildly screwed in theater mode? 2018-05-01 23:09:58 +02:00
Tamius Han
bf7dce2482 Forgot git commit -a doesn't actually add new files. again. 2018-04-26 00:40:23 +02:00
Tamius Han
9e044ac66f added a debug canvas for ArDetect to draw on in debug mode 2018-04-26 00:40:09 +02:00
Tamius Han
b0ef12d97b Trying to fix the youtube popup bug by re-detecting player element every time a new <video> tag is detected. 2018-04-25 20:39:52 +02:00
Tamius Han
eebed0e1c4 turned on logging in debug.js 2018-04-22 17:10:36 +02:00
Tamius Han
956675b0c9 extra changes to logs 2018-04-22 16:51:35 +02:00
Tamius Han
7527f73922 some more testing stuff for testers 2018-04-22 15:12:27 +02:00
Tamius Han
596ca021ba some more testing stuff for testers 2018-04-22 15:11:48 +02:00
Tamius Han
64e28e8074 Another attempt at fixing the youtube search popup. 2018-04-22 14:35:40 +02:00
Tamius Han
77e1f711fd enabled logging for player dimensions 2018-04-11 19:59:00 +02:00
Tamius Han
59d741b8a5 Tried implementing some checks that would prevent aspect ratio from changing if our edge candidate is text on black background. 2018-04-11 00:19:44 +02:00
Tamius Han
3740f2c487 ??? 2018-04-10 21:35:34 +02:00
Tamius Han
6fe906f166 Did I mention Warcraft movie needs a sequel? Because Warcraft movie needs a sequel.
So netflix aspect ratio detection was fine when watching Altered Carbon (2:1), but Warcraft (21:9) had some huge issues with properly auto-detecting aspect ratio (especially when starting automatic aspect ratio after manual toggle). Fixed that (i think).
2018-03-18 17:35:51 +01:00
Tamius Han
44828b3ecf Tried to fix aspect ratio autodetection on netflix but ended up watching the entire Altered Carbon instead.
Just kidding, I also fixed the autodetection on netflix. And the bit where key for netflix in SitesConf.js was wrong.
2018-03-18 15:14:57 +01:00
Tamius Han
61a3b07c6b Fixed some issues with detecting player size changes (esp. on youtube), where switching from normal player to full screen player wouldn't be handled correctly. 2018-03-14 23:51:13 +01:00
Tamius Han
c35774c36f Chrome kinda works according to 1 beta tester. Fixed few other chrome-specific bugs I've noticed. Fixed the font inclusion (hopefully) 2018-03-14 21:19:15 +01:00
Tamius Han
3b7f00dc8e I feel fancy.
Fixed #25
Fixed #32
Fixed #30 (I actually haven't, just the extension was set to 'you have to manually allow sites other than youtube and netflix')
Fixed #27
2018-03-14 00:08:51 +01:00
Tamius Han
e6efaf52d8 Split settings between Settings.js (handles loading and saving) and ExtensionConf.js (actual configuration). All settings are now handled in background script (content scripts get ExtensionConf from background script). Saving seems to work. 2018-03-13 23:55:38 +01:00
Tamius Han
51f2df930d end of the day commit. settings for autoAr ARE NOT getting saved. 2018-03-13 00:36:10 +01:00
Tamius Han
13a928b90e ar fixed, disabling/enabling sites roughly works. 2018-03-11 18:00:47 +01:00
Tamius Han
d079a84005 Sitesconf comeback complete. Need to implement adding and changing settings for sites in the popup and the background script. 2018-03-11 00:49:29 +01:00
Tamius Han
15aeefbd8c retiring whitelist/blacklist arrays in Settings, SitesConf is making a comeback instead 2018-03-10 23:25:30 +01:00
Tamius Han
a5422abfcd Fixed the issue where fullscreen videos wouldn't be entirely fullscreen on youtube. 2018-03-10 12:30:38 +01:00
Tamius Han
7db22fb466 RAM leak issue should be fixed for the most part. We did it ~~reddit~~github! (NOTE: there's still other things that need fixing before I let this into prod) 2018-03-08 22:22:42 +01:00
Tamius Han
93d3b064da end of the day commit. multiple concurrent instances seems to be at least somewhat under control, but other parts of extension still need modifications and testing. 2018-03-07 23:49:43 +01:00
Tamius Han
ba841c6ea3 unfuck progress before switching branches. 2018-03-07 21:42:40 +01:00