Skip to content

Instantly share code, notes, and snippets.

View tadwohlrapp's full-sized avatar
🇺🇦

Tad Wohlrapp tadwohlrapp

🇺🇦
View GitHub Profile
@tadwohlrapp
tadwohlrapp / export-google-podcasts-listening-history-readme.md
Last active June 23, 2024 21:33
How to Export Google Podcasts listening history

How to Export your Google Podcasts listening history

Since Google doesn't provide any method to export or download your listening history, I wanted to find a way to preserve that data for later reference when setting up a new podcast app. I came up with the following script that can be run in your browser console to retrieve and export your Google Podcasts listening history as a CSV file.

NEVER RUN CODE YOU DON'T UNDERSTAND.

Running untrusted code in your browser console can potentially be harmful, so it's important to understand what the code does before executing it. I've included comments in the code to explain its functionality.

Instructions:

@tadwohlrapp
tadwohlrapp / bulk_subscribe_reddit.js
Last active April 15, 2023 08:31 — forked from AymaneHrouch/autosub_reddit.js
Auto bulk subscribe to all your subreddits after moving to a new Reddit account
/*
Way better than Reddit's official FAQ suggestion: https://reddit.zendesk.com/hc/en-us/articles/205243365
1. Visit https://old.reddit.com/subreddits/mine using your old account
2. Find the link "multireddit of your subscriptions" in the sidebar, and copy its URL
The URL will look like this: https://old.reddit.com/r/[subreddit1+subreddit2+...+subredditN]
Please note that if you have a lot of subreddits the link might not work because there's a limit to the link's length
In that case you might want to split the link in two or three links
3. Visit that link (or links) using your new account
4. Open the console by pressing F12 (or Cmd+Opt+J on Mac) and then clicking the console tab.

Collection of all query_hashes I could identify to get edge_follow or edge_followed_by data.

Entry URL is https://www.instagram.com/graphql/query/?query_hash=${hash}&variables={"id":"${userId}","first":"48"}.

Replace ${hash} with one of the five hashes below and ${userId} with the logged in user ID (stored in ds_user_id Cookie).

Hash Type Returned properties
58712303d941c6855d4e888c5f0cd22f edge_follow followed_by_viewer, is_verified, requested_by_viewer
d04b0a864b4b54837c0d870b0e77e076 edge_follow followed_by_viewer, is_verified, requested_by_viewer, is_private
@tadwohlrapp
tadwohlrapp / ublock-filter-youtube.txt
Last active April 22, 2024 11:48
Filters for uBlock Origin I use to block annoying elements on YouTube
!============================
! YouTube Menus
!============================
!hide voice search button in top nav
youtube.com###voice-search-button
!hide "Explore" in sidebar
youtube.com##ytd-guide-entry-renderer:has-text(Explore)
youtube.com##ytd-guide-section-renderer:has(h3:has-text(/Explore/))