Commit graph

21 commits

Author SHA1 Message Date
Shiba
f072c95051 🍤 Build for manifest v2 and v3 at once
- and zip them
2022-07-01 20:39:13 +00:00
Shiba
be310e6cb1 🧀 added manifest v2 support for firefox 2022-05-02 13:17:58 +00:00
Shiba
0bcf69e99b 🍜 bugfixes 2022-05-01 16:55:13 +00:00
Shiba
5d9d0416a3 🔥 Organized Files
- And some refactoring
2022-05-01 15:49:55 +00:00
dependabot[bot]
8b0176a3a2
Bump lodash from 4.17.20 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-11 23:58:49 +00:00
dependabot[bot]
9bb7e5fd5c
Bump marked from 1.2.7 to 2.0.0
Bumps [marked](https://github.com/markedjs/marked) from 1.2.7 to 2.0.0.
- [Release notes](https://github.com/markedjs/marked/releases)
- [Changelog](https://github.com/markedjs/marked/blob/master/release.config.js)
- [Commits](https://github.com/markedjs/marked/compare/v1.2.7...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-02-08 22:43:14 +00:00
kodxana
ab707bf533
Merge pull request #51 from Aenigma/feature/odysee-button-hotfix
Hotfixes for odysee button
2021-01-21 23:11:35 +01:00
Kevin Raoofi
a0963db2b4 build glob parity with watch
It seems like I only cared about the watch command and missed updating
`build` in the past. This makes the CI build broken packages.
2021-01-21 17:00:09 -05:00
kodxana
e0434192ff
Updated build process 2021-01-21 22:53:06 +01:00
Kevin Raoofi
570d278f1f Create github actions
Builds the web extension and archives it as an artifact
2021-01-21 16:11:11 -05: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
08842c4ba8 Added SVG icon to button 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
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
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
468c04ba62 Added typescript 2020-10-13 05:17:41 -04:00
kodxana
83f4a06336
Update package.json 2020-10-08 12:43:54 +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
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