Commit graph

162 commits

Author SHA1 Message Date
kodxana
a03a5df765
Update README.md 2020-12-18 16:07:24 +01:00
kodxana
1996373b54
Added logo 2020-12-18 15:44:21 +01:00
kodxana
25bc0399a8
Merge pull request #45 from LBRYFoundation/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2020-12-16 20:33:44 +01:00
dependabot[bot]
f1a3a38116
Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-13 06:21:02 +00:00
kodxana
40a3a7fee0
UP version 2020-12-04 20:40:20 +01:00
kodxana
a51be792ab
Merge pull request #43 from Aenigma/feature/takeout-json
Support Google Takeout JSON for Subscription Manager
2020-12-04 20:37:01 +01:00
Kevin Raoofi
4d3a6d6e97 Use the README file for page directions
Add marked dependency for parcel so that it can do that for us
2020-11-25 18:34:59 -05:00
Kevin Raoofi
7e049858b5 Updated styling 2020-11-25 18:25:37 -05:00
Kevin Raoofi
8341291497 Use a set to deduplicate subscriptions 2020-11-25 18:25:37 -05:00
Kevin Raoofi
30c93c2c4f Update package-lock.json
This bumps up the lockfile version and recreates it.

I was getting a lot of grief trying to upgrade it with a new version of
npm so it's good to do a hard upgrade ASAP.
2020-11-25 18:25:25 -05:00
Kevin Raoofi
bd5adf6652 Support YouTube takeout JSON 2020-11-11 14:21:34 -05:00
kodxana
991a37c367
Merge pull request #39 from Aenigma/feature/watch-on-lbry-button
Watch on LBRY button
2020-11-09 22:23:08 +01:00
Kevin Raoofi
08842c4ba8 Added SVG icon to button 2020-10-28 05:21:49 -04:00
Kevin Raoofi
2e58a04333 Update button on redirect change 2020-10-28 05:21:49 -04:00
Kevin Raoofi
7954c29482 Watch-on-Lbry button
* Created a content script for YouTube that injects a styled button
* Automatically pause the video when redirecting to the app

The button location is rather finicky as certain polymer components
seem to move around, causing random DOM elements to appear all over the
place if it's not a "singleton" component.

squash
2020-10-28 05:21:49 -04:00
Kevin Raoofi
40036013c2 Set font-family to sans serif
FireFox defaults to serif for non-button elements. This makes the look
of the buttons consistent on both firefox and chrome based browsers.
2020-10-28 05:21:49 -04:00
Kevin Raoofi
f198929922 Disable mininification + import changes
Import changes should reduce the size of the bundle a little.
Particularly, not getting the entirety of lodash.
2020-10-28 05:21:49 -04:00
kodxana
0401c6f3d1
Update README.md 2020-10-13 22:20:40 +02:00
kodxana
dca9b984e8
Update README.md 2020-10-13 22:20:25 +02:00
kodxana
7ae45e5d13
Merge pull request #35 from LBRYFoundation/Up-Version
Up Version
2020-10-13 15:24:34 +02:00
kodxana
df18a83285
Up Version 2020-10-13 15:23:50 +02:00
kodxana
2d719843ad
Merge pull request #34 from Aenigma/feature/rewrite
Major Refactor
2020-10-13 13:37:08 +02:00
Kevin Raoofi
deac83e656 Bug fixes
Subscription converter didn't handle error responses very well.
Also, the chunk size was lowered to 300 as this seems to make requests
failing.

Additionally, fix bug where redirect was trying to go to the app and a frontend at the same time, only to confuse lbry.tv
2020-10-13 06:45:51 -04:00
Kevin Raoofi
3821ff8e1f Add odysee 2020-10-13 05:39:52 -04:00
Kevin Raoofi
69f24a6f32 Make YTtoLBRY use Preact
Not particularly valuable here, but more consistent if we're to accept
popup as using preact
2020-10-13 05:39:52 -04:00
Kevin Raoofi
6e907c91e8 Use preact + sass for popup
* Styles were extracted out from popup.css and into common/style
* Preact allows for reusable components and easier dynamic components
  * Easy transition to react or others while not being overbearing
* Component specific style are locally imported and handled by parcel

ButtonRadio is particulary nice in that it uses pre-exisitng button
styling on radio buttons to make it easy to pick configurable options.
2020-10-13 05:39:52 -04:00
Kevin Raoofi
9f8e521fa6 URL parsing for app redirects
URL parsing logic is basically a straight port of how lbryio/lbry-sdk
parses lbry URLs. While there's a lot more going on, it should be
easier to follow what they're doing this way.

Also, added some light unit tests for the URL parsing using jest.
Which, of course, needed a babel config.

With this, tabOnUpdated was able to be rewritten more elegantly to
handle redirects as it delegates a lot of the work to utilities now.
2020-10-13 05:39:47 -04:00
Kevin Raoofi
da5cc12a7b ytService and rewrite of YTtoLBRY
YTtoLBRY:

* Use DOMParser for reading OPML
  * OPML parsing was quite brittle as it relied on string parsing
* Removed dead script inclusion in the HTML page
* Removed global state variables
* Use fetch to clean up the query logic
* Promisified file, API calls, and settings querying to simplify logic

Many of the utilities involving APIs were isolated to a common module.
Particularly, ytService contains all methods for extracting IDs,
querying for the lbry URLs, parsing OPML, and more.

This functionally is heavily used in YTtoLBRY and lightly used by
tabsOnUpdated.
2020-10-13 05:17:44 -04:00
Kevin Raoofi
48f88da6aa Common settings module
* settings module as single source of truth and provides utilities,
  defaults, constants, and typing
* runtimeOnStartup and storageOnChanged were merged into storageSetup
* storageSetup reworked to use settings for seamless additions
* tabOnUpdated and YTtoLBRY updated to use settings for URL prefixes
2020-10-13 05:17:44 -04:00
Kevin Raoofi
468c04ba62 Added typescript 2020-10-13 05:17:41 -04:00
kodxana
ebecd0cfff
Merge pull request #32 from LBRYFoundation/dependabot/npm_and_yarn/node-forge-0.10.0
Bump node-forge from 0.7.6 to 0.10.0
2020-10-08 12:45:40 +02:00
dependabot[bot]
fcd5a5a384
Bump node-forge from 0.7.6 to 0.10.0
Bumps [node-forge](https://github.com/digitalbazaar/forge) from 0.7.6 to 0.10.0.
- [Release notes](https://github.com/digitalbazaar/forge/releases)
- [Changelog](https://github.com/digitalbazaar/forge/blob/master/CHANGELOG.md)
- [Commits](https://github.com/digitalbazaar/forge/compare/0.7.6...0.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-08 10:44:38 +00:00
kodxana
83f4a06336
Update package.json 2020-10-08 12:43:54 +02:00
kodxana
b08a6a210c
Merge pull request #31 from Aenigma/feature/npm-project
npm style project setup
2020-10-08 12:39:29 +02:00
Kevin Raoofi
cb59fc52f3 Fix run scripts for windows
Apparently, windows doesn't like single quotes in some cases.
2020-10-06 15:32:26 -04:00
Kevin Raoofi
d56995403c Updated README with build instructions 2020-10-06 15:12:16 -04:00
Kevin Raoofi
4a8fcab524 Remove content.js script include
Since that scripts doesn't exist, it breaks the parcel build
2020-10-06 14:59:23 -04:00
Kevin Raoofi
0cc8f4effe npm style project setup
* All files were moved to the `src` directory, unchanged
* Parcel handles module resolution as well as transpilation via babel
* package.json, package-lock.json, and .gitignore were added
* Utilize crossplatform tools for build
2020-10-06 14:58:52 -04:00
kodxana
bf7f1126c3
Update manifest.json 2020-08-11 18:59:05 +02:00
kodxana
fa060b1484
Update manifest.json 2020-08-11 17:44:11 +02:00
kodxana
b2c1fd3273
Merge pull request #26 from clay53/lbrytv-app-close
Better handling for redirection to app from lbry.tv links & small cleanup
2020-08-11 17:43:46 +02:00
Clayton Hickey
5f5b2a882f
Ignore query parameters when detecting lbry.tv claim and channels for redirection 2020-08-11 11:42:32 -04:00
kodxana
e82cce7a00
Update README.md 2020-08-10 23:56:40 +02:00
Clayton Hickey
54afaa8549
Better handling for redirection to app from lbry.tv links & small cleanup 2020-08-10 12:11:31 -04:00
kodxana
713105c7b2
Merge pull request #25 from clay53/a-redirect
lbry.tv links now redirect to lbry app
2020-08-10 14:40:47 +02:00
Clayton Hickey
555898a551
lbry.tv links now redirect to lbry app 2020-07-24 16:25:09 -04:00
kodxana
7128d6f184
Merge pull request #23 from 53jk1/master
Improved graphics
2020-07-15 19:25:35 +02:00
kodxana
928849e875
Update YTtoLBRY.html 2020-07-15 19:25:07 +02:00
Sejki
0d373e6322 Improved graphics
Changed HTML and CSS
2020-07-15 19:14:58 +02:00
kodxana
0eded90bfa
Merge pull request #22 from kodxana/add-license-1
Create LICENSE
2020-07-14 21:10:37 +02:00