Skip to content

Instantly share code, notes, and snippets.

View skeddles's full-sized avatar

Sam Keddy skeddles

View GitHub Profile
@skeddles
skeddles / twitter-text-js.js
Created October 15, 2021 17:51
Javascript Browser Based Wrapping of Twitter-Text v3.1
/*
A browser compatible version of twitter-text (for counting tweet length) **
-----
Original Repo: https://github.com/twitter/twitter-text/tree/master/js
Packaged from: twitter-text-3.1.0.js
Using: browserify
For this: https://stackoverflow.com/questions/69575409/how-do-i-use-twitter-text-in-a-browser
*/
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
shader_type canvas_item;
render_mode unshaded;
uniform float circle_size : hint_range(0.0, 1.05);
uniform float screen_width;
uniform float screen_height;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
void fragment() {
float ratio = screen_width / screen_height;
float dist = distance(vec2(0.5, 0.5), vec2(mix(0.5, UV.x, ratio), UV.y));
// ==UserScript==
// @name BlueSky Profile Follower Count Updater
// @namespace http://tampermonkey.net/
// @version 1.14
// @description Update the follower count on BlueSky profile pages with commas, even on URL changes
// @author skeddles
// @homepage https://bsky.app/profile/skeddles.com
// @match https://bsky.app/profile/*
// @grant GM.xmlHttpRequest
// @connect public.api.bsky.app