Skip to content

Instantly share code, notes, and snippets.

View mxamber's full-sized avatar

Amber Alex mxamber

View GitHub Profile
@mxamber
mxamber / toot_revival.user.js
Last active November 21, 2022 14:31
Changes the "Publish" button back to "Toot", with "Send" for DMs and "Broadcast" for Public toots (all labels can be changed at the top). Works for glitch-soc only.
// ==UserScript==
// @name Toot Button Revival Advanced
// @namespace http://tampermonkey.net/
// @version 0.3
// @description here be toots
// @author mxamber
// @match https://eldritch.cafe/*
// @grant none
// ==/UserScript==
@mxamber
mxamber / twitter_link_fix.user.js
Last active October 27, 2022 13:46
Replacing many t.co links with the actual urls on Twitter (no card links yet)
@mxamber
mxamber / fedititle.user.js
Created May 3, 2022 11:09
Changes the tab title of Mastodon-based Fediverse instances in real time according to what's displayed (toot text)
// ==UserScript==
// @name Fedi Tab Title
// @version 0.1
// @grant none
// @description Dynamic tab title for Mastodon-based Fediverse instances.
// @author mxamber
// ==/UserScript==
/*
@mxamber
mxamber / transphobesearch.user.js
Last active March 15, 2022 15:16
Userscript that adds a "is a transphobe?" link to every user profile on Twitter to quickly look up a person's position on transgender rights before interacting with them.
// ==UserScript==
// @name Twitter Transphobe Search
// @namespace http://tampermonkey.net/
// @version 0.4
// @description Find trans-related tweets from any public user
// @author mxamber
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?domain=twitter.com
// @grant none
// ==/UserScript==
@mxamber
mxamber / twitter_old_buttons.user.css
Last active May 6, 2022 11:58
Custom CSS to revert Twitter's follow/unfollow buttons to the old styles
/*
* Twitter Follow/Unfollow buttons
* revert to old style via custom CSS
* Author: mxamber
* Website: https://github.com/mxamber
* Version: 1.2
* Date: 2021-08-11
* Updated: 2021-08-12
*/
@mxamber
mxamber / morsetrainer.htm
Last active May 20, 2021 00:23
A primitive trainer helping learn morse. Will present characters from the Latin and Morse alphabets and display the correct equivalent after the user submits their own answer.
<!doctype HTML>
<html>
<head>
<title>morse code trainer</title>
<meta name="title" content="morse corde trainer">
<meta name="description" content="a simple morse code trainer to learn the morse alphabet">
<meta name="author" content="https://gitub.com/mxamber">
<meta charset="UTF-8">
<link rel="icon" type="data:image/png" href=" data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5QUSFxIo7IVdKQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAABlElEQVR42u3dO46DMBRAUTOaDrZD/7wZNuA9wQahdqop0owCmfAZzpHcBb0oviKJG5paa03c1pePQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgAASAABAAAkAACAABIAAEgAAQAAJAAAgAASAABIAAEAACYF/fr76waZpD3+jVHmxylc/LHcBXAAJAAAgAASAABIAAuInGs4PdARAAAkAACAABXMs0TSnnnLque1o55zRN02VmHKZeWCmlppR+XaWU0884UvrPm//uBu0xQwAbjOP48sb8rHEcTzdDABtFxOrNiYjTzTiDSx4Fd12XlmVZdU3btmme51PN8C8AASAABLBO3/cfv2aPGQLYaBiGj1+zxwwngQ6CnAM4ChbA26eCEVHbtn1aEfFnJ3N7zHAQhB+BCAABIAAEgAAQAAJAAAgAASAABIAAEAACQAAIAAEgA
@mxamber
mxamber / stan_handles.html
Last active April 4, 2020 14:32
A little HTML/Javascript thingy that generates fake "stan Twitter" usernames.
<!doctype HTML>
<html>
<head>
<title>Stan Twitter Name Generator</title>
<style>
html {
background: #666;
}
#main {
@mxamber
mxamber / ao3_stats.js
Created August 31, 2019 02:37
A Tampermonkey userscript to display some stats on AO3: the percentage of all visitors (hits) that left a kudo, comment, or bookmarked the story.
// ==UserScript==
// @name AO3 Stats
// @namespace http://tampermonkey.net/
// @version 1.0
// @description display ao3 stats
// @author mxamber
// @match https://archiveofourown.org/works/*
// @grant none
// ==/UserScript==
@mxamber
mxamber / blocklist_export.js
Created June 19, 2019 11:53
run this in the console on a twitter user's following / follower page to export the IDs of all their followers / followeds in a format suitable for blockchain import
var IDs = [];
var users = [];
var result = '{"users":[\n';
var elements = Array.prototype.slice.apply(document.querySelectorAll("div[role='listitem'] div[data-user-id][data-screen-name].ProfileCard"));
elements.forEach(function(element) {
var user = {id: element.getAttribute("data-user-id"), name: element.getAttribute("data-screen-name")};
IDs.push(user.id);
result += '{"id":"' + user.id + '"},\n';
});
function download() {
var IDs = [];
var users = [];
var elements = Array.prototype.slice.apply(document.querySelectorAll("div[role='listitem'] div[data-user-id][data-screen-name].ProfileCard"));
elements.forEach(function(element) {
var user = {id: element.getAttribute("data-user-id"), name: element.getAttribute("data-screen-name")};
IDs.push(user.id);
users.push(user);
});