Commit Graph

108 Commits

Author SHA1 Message Date
0c37c5a0e1 Popup and settings work, but all scripts can run doubly if uw.init() was called twice 2018-08-30 00:56:26 +02:00
6c93a19248 Misc fixes 2018-08-29 00:41:26 +02:00
107c9b12bd Comms: accounted for the possibility of pageInfo missing when extension is disabled 2018-08-22 23:46:59 +02:00
2619b02263 Fix comms 2018-08-22 23:16:08 +02:00
da18f5a5c4 Extension at least starts now 2018-08-07 23:31:28 +02:00
09cc1816ad Cleanup 2018-08-02 23:24:22 +02:00
ea86721321 Fixed some minor bugs, rewrote some bits of the popup 2018-06-27 23:55:37 +02:00
293b784704 Popup: aspect ratio buttons are working. Fixed some bugs with crop calculation. 2018-05-27 01:29:02 +02:00
dd319551bc Comms minimally functional again, with one ugly workaround. 2018-05-26 23:08:49 +02:00
7d89f41e40 Moved keybinds options to ExtensionConf. Rewrote Keybinds in a bit more OOP way 2018-05-24 20:50:37 +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
3686341677 rewrite finished to the point where extension doesn't outright crash. Nothing works, though. 2018-05-13 21:05:11 +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
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
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
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
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
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
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
ba841c6ea3 unfuck progress before switching branches. 2018-03-07 21:42:40 +01:00
Tamius Han
3bd28842e1 Tried my hand at fixing memory leak. ArDetect — no dice. Ghetto watcher for changes in player size now saves the HTML element that's deemed to be the player frame and uses said node for size tests in subsequent iterations (as opposed to searching for player node on every frame). Also hopefully fixed the bug with custom settings for individual sites not
getting saved.
2018-02-26 22:38:17 +01:00
Tamius Han
d78fa346ce register-video in ghettoOnChange didn't always work. background script now polls content script of current tab every 5 or so seconds. Popup script polls for has-video changes once every two seconds or so. 5s and 2s seem reasonable. 2018-02-06 00:36:48 +01:00
Tamius Han
fc4f073e5d fix for #20 2018-02-05 22:46:38 +01:00
Tamius Han
2c0f0ed607 Release v2.1.0 (sans readme) 2018-02-04 17:39:26 +01:00
Tamius Han
b13eff44e3 Reworked popup warnings. Chrome doesn't work again. 2018-02-02 00:21:29 +01:00
Tamius Han
174c987690 Keyboard shortcuts get loaded in popup, fixed 'reset' button in popup. 2018-02-01 00:26:16 +01:00
Tamius Han
3cccaa37ae Minor fixes, updated readme with beggathon. 2018-01-28 02:35:05 +01:00
Tamius Han
0c1cae3215 "Fit to width" and "fit to height" now calculate video fit according to player size, not screen size. 2018-01-27 20:27:11 +01:00
Tamius Han
463dcc0692 Fixed popup for Chrome — or so it seems. 2018-01-27 20:13:23 +01:00
Tamius Han
e51faaf934 New comms between [uw.js <==> uw-bg.js <==> popup.js] established. Working in Firefox, not in Chrome — potentially due to Promise.all() (try replacing with for(promise of promises) await promise) 2018-01-26 00:09:08 +01:00
Tamius Han
551bee1724 reintroducing background script, which will keep track of frames and videos in currently opened tab (not yet implemented) 2018-01-24 23:15:54 +01:00
Tamius Han
85a6a680b9 Optimizations and changes. 2018-01-20 22:59:31 +01:00
Tamius Han
3b3430ddce Merged FullScreenDetect into PlayerDetect. Youtube: switching between theater mode, full screen and normal mode works properly. Vimeo still broken. 2018-01-18 22:34:42 +01:00
Tamius Han
9265a336bc Trying to add blanket support for theater mode. Changing aspect ratio works in youtube theater mode, but only when manually launched. Chaning to full screen mode stops it. This commit breaks vimeo support. 2018-01-18 00:11:03 +01:00
Tamius Han
d4a6901d7d Popup now works on Chrome as well. 2018-01-11 22:43:25 +01:00
Tamius Han
33acbe5015 Okay then. Turns out background script might not be necessary. (Even though not yet removed from the projects, popup now communicates directly with the tab as opposed to background page which forwards everything to the tab. I think. But this means even Chrome — as shit as it is — might be able to do the popup stuff without me having to maintain another
version of code that does the same thing.)
2018-01-10 23:16:07 +01:00
Tamius Han
45c986d66d Chrome is fucking cancer and its sendMessage() (both in chrome.tabs as well as chrome.runtime) sucks major ass. 2018-01-08 22:48:45 +01:00
Tamius Han
4b61325c58 Attempt at fixing Chrome's UI. Not successful because Chrome documentation is TL;DR 2018-01-06 22:58:31 +01:00
Tamius Han
d8ee278491 Fixed bug with popup buttons for forcing aspect ratio not always working. Autodetection can no longer get triggered by small changes in aspect ratio (but will get triggered if change is a small amount over the treshold still) 2018-01-02 03:36:29 +01:00
Tamius Han
5ad7144e67 Version 2.0! Woohoooo! 2017-12-31 18:28:03 +01:00
Tamius Han
ec6dfadb41 Some basic settings for keyboard shortcuts. 2017-12-30 20:53:15 +01:00
Tamius Han
d0373820fe Popup is working properly now. 2017-12-30 18:36:08 +01:00
Tamius Han
82dd71eb5b Keyboard settings work (modifiers untested) 2017-12-30 12:55:58 +01:00
Tamius Han
0f2d786780 Popup menus are showing properly. 2017-12-30 02:58:24 +01:00
Tamius Han
de2677fdd6 Added ui/popup window (and it kinda works) 2017-12-29 23:34:40 +01:00