Skip to content

Instantly share code, notes, and snippets.

@amitkrxyz
amitkrxyz / export-yt-subs.md
Last active February 22, 2024 15:03
Export YouTube subscriptions from your browser console

Steps

  1. Go to https://www.youtube.com/feed/channels while logged into your Google account.
  2. Scroll to the bottom to ensure all subscriptions are fully loaded on the page.
  3. Press Ctrl + Shift + j to open the developer console.
  4. Copy and paste the provided script.js code.
  5. Right click on the generated text and select Copy string contents.
  6. Paste the copied text into a new file, preferably ending with .json, for example, my-subscriptions.json.
@amitkrxyz
amitkrxyz / app.config.js
Created August 12, 2023 03:57 — forked from wodin/app.config.js
Add `usesCleartextTraffic` to AndroidManifest.xml in Expo managed workflow
/*
* Convert `app.json` to `app.config.js`
* Install `@expo/config-plugins` as a devDependency
* Copy the `withAndroidApplicationAttributes` config plugin and related `addAttributesToApplication` function to `app.config.js`
* Add a `plugins` section to reference the config plugin and specify the attribute to add
* Build with `eas build -p android ...`
*/
import { AndroidConfig, withAndroidManifest } from "@expo/config-plugins";
function addAttributesToApplication(androidManifest, attributes) {