This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AtpAgent from '@atproto/api' | |
import { Secp256k1Keypair } from '@atproto/crypto' | |
import * as ui8 from 'uint8arrays' | |
const OLD_PDS_URL = 'https://bsky.social' | |
const NEW_PDS_URL = 'https://pds.haileyok.com' | |
const CURRENT_HANDLE = 'haileyok.com' | |
const CURRENT_PASSWORD = '' | |
const NEW_HANDLE = 'newphone.pds.haileyok.com' | |
const NEW_ACCOUNT_EMAIL = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'omniauth-oauth2' | |
require 'openssl' | |
require 'jwt' | |
require 'securerandom' | |
module OmniAuth | |
module Strategies | |
class Bluesky < OmniAuth::Strategies::OAuth2 | |
option :name, 'bluesky' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Migration | |
** Blank env | |
export INVITECODE= | |
export ACCOUNTDID=did:plc:XXX | |
export OLDPDSHOST=https://bsky.social | |
export OLDPDSSERVICEDID=did:web:bsky.social | |
export OLDHANDLE= | |
export OLDPASSWORD="" | |
export NEWPDSHOST=https://pds.merklehost.xyz | |
export NEWPDSSERVICEDID=did:web:pds.merklehost.xyz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! remove `session_id` tracking parameter from videos | |
! | |
! ideally this would've been a redirect from `video.bsky.app/watch/<did>/<cid>/playlist.m3u8` | |
! to `video.cdn.bsky.app/hls/<did>/<cid>/playlist.m3u8`, as the latter is the actual CDN while | |
! the former is the middleware, however: | |
! | |
! - the raw playlist will not contain webvtt, that's added in by the middleware | |
! - ublock doesn't have a rule that allows redirecting to non-local neutered resource | |
! | |
||video.bsky.app$removeparam=session_id |
OlderNewer