diff --git a/package-lock.json b/package-lock.json index b69a270..3f6595e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "cross-env": "^7.0.2", "jest": "^26.5.3", "lodash": "^4.17.20", + "marked": "^1.2.5", "node-forge": ">=0.10.0", "node-sass": "^4.14.1", "npm-run-all": "^4.1.5", @@ -12175,6 +12176,18 @@ "node": ">=0.10.0" } }, + "node_modules/marked": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/marked/-/marked-1.2.5.tgz", + "integrity": "sha512-2AlqgYnVPOc9WDyWu7S5DJaEZsfk6dNh/neatQ3IHUW4QLutM/VPSH9lG7bif+XjFWc9K9XR3QvR+fXuECmfdA==", + "dev": true, + "bin": { + "marked": "bin/marked" + }, + "engines": { + "node": ">= 8.16.2" + } + }, "node_modules/marky": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.1.tgz", @@ -30807,6 +30820,12 @@ "object-visit": "^1.0.0" } }, + "marked": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/marked/-/marked-1.2.5.tgz", + "integrity": "sha512-2AlqgYnVPOc9WDyWu7S5DJaEZsfk6dNh/neatQ3IHUW4QLutM/VPSH9lG7bif+XjFWc9K9XR3QvR+fXuECmfdA==", + "dev": true + }, "marky": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/marky/-/marky-1.2.1.tgz", diff --git a/package.json b/package.json index 4ec6e97..edafde1 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,6 @@ ">1%", "not ie > 0" ], - "dependencies": {}, "devDependencies": { "@babel/preset-typescript": "^7.10.4", "@types/chrome": "0.0.124", @@ -30,6 +29,7 @@ "cross-env": "^7.0.2", "jest": "^26.5.3", "lodash": "^4.17.20", + "marked": "^1.2.5", "node-forge": ">=0.10.0", "node-sass": "^4.14.1", "npm-run-all": "^4.1.5", diff --git a/src/global.d.ts b/src/global.d.ts new file mode 100644 index 0000000..f7ba0eb --- /dev/null +++ b/src/global.d.ts @@ -0,0 +1,4 @@ +declare module '*.md' { + var _: string; + export default _; +} diff --git a/src/tools/README.md b/src/tools/README.md new file mode 100644 index 0000000..5653dfb --- /dev/null +++ b/src/tools/README.md @@ -0,0 +1,6 @@ +# Getting your subscription data + +1. Go to https://takeout.google.com/settings/takeout +2. Deselect everything except `YouTube and YouTube Music` and within that only select `subscriptions` +3. Go through the process and create the export +4. Once it's exported, open the archive and find `YouTube and YouTube Music/subscriptions/subscriptions.json` and upload it to the extension diff --git a/src/tools/YTtoLBRY.tsx b/src/tools/YTtoLBRY.tsx index 0578a56..f998af5 100644 --- a/src/tools/YTtoLBRY.tsx +++ b/src/tools/YTtoLBRY.tsx @@ -4,6 +4,8 @@ import { useState } from 'preact/hooks'; import { getSettingsAsync, redirectDomains } from '../common/settings'; import { getFileContent, ytService } from '../common/yt'; +import readme from './README.md'; + /** * Parses the subscription file and queries the API for lbry channels * @@ -52,6 +54,7 @@ function YTtoLBRY() {