I hereby claim:
- I am KevinPayravi on github.
- I am kevinpayravi (https://keybase.io/kevinpayravi) on keybase.
- I have a public key whose fingerprint is FFA4 54E5 2C80 B519 F7B7 3EC5 A279 B2E6 8E5C 2BB1
To claim this, I am signing this object:
// USE AT YOUR OWN RISK | |
// This is a JavaScript script edits your statuses/toots | |
// It's pretty rudimentary and doesn't account for all possible cases | |
// | |
// This script will iterate through a list of Mastodon statuses, | |
// searching for Twitter t.co shortlinks and replacing them with their actual targets. | |
// When a t.co link is found, this script makes a web request to find its target and updates it. | |
// It will also convert all http:// links to https:// | |
// | |
// While running, this script will output progress to the console so you can check for erros |
[ | |
{"owner_name": "PussTheCat.org", "owner_website": "https://pussthecat.org", "instance": "https://breezewiki.pussthecat.org"}, | |
{"owner_name": "~vern", "owner_website": "https://vern.cc", "instance": "https://bw.vern.cc"}, | |
{"owner_name": "Esmail", "owner_website": "https://en.esmailelbob.xyz", "instance": "https://breezewiki.esmailelbob.xyz"}, | |
{"owner_name": "Artemis", "owner_website": "https://artemislena.eu", "instance": "https://bw.artemislena.eu"} | |
] |
/* | |
A console script that can be run on a MediaWiki wiki to extract all tweets linked in the mainspace. | |
To run this: visit a MediaWiki wiki, open your browser's developer console, paste this code in, and press enter. | |
It will print and re-print a growing array of Tweets until it is done searching. | |
How does this janky script work? | |
It first searches MediaWiki for all pages that contain the text "twitter". | |
Trying to search for URLs (i.e. twitter.com) is unreliable depending on a wiki's search infrastructure. | |
This script then grabs the wikitext from all these pages and uses regex to search for any Tweet URLs. |
#!/bin/bash | |
########################## | |
# Change these variables # | |
########################## | |
FILE="/path/to/console.log" | |
WEBHOOK_URL="CHANGEME" | |
STEAMKEY="CHANGEME" | |
########################## |
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
{ | |
"COMMON": { | |
"YES": "Yes", | |
"NO": "No", | |
"OR": "or", | |
"LOADING": "Loading...", | |
"DATE": "DD MMM YYYY", | |
"DATETIME": "DD MMM YYYY HH:mm", | |
"SAVE": "Save", | |
"CANCEL": "Cancel", |
/* This file has been modified from its original version by Kevin Payravi */ | |
@charset "UTF-8"; | |
.introjs-helperLayer,.introjs-overlay{ | |
-webkit-transition:all .3s ease-out; | |
-moz-transition:all .3s ease-out; | |
-ms-transition:all .3s ease-out; | |
-o-transition:all .3s ease-out; | |
box-sizing:content-box | |
} |
I hereby claim:
To claim this, I am signing this object: