Skip to content

Instantly share code, notes, and snippets.

@twilight-sparkle-irl
twilight-sparkle-irl / tdfaves.user.js
Last active January 16, 2016 20:24
self explanatory
// ==UserScript==
// @name Bring TweetDeck Favorites Back
// @namespace NO_BOOT_DEVICE/Bring_TD_Favorites_Back
// @description self explanatory
// @include https://tweetdeck.twitter.com/*
// @version 1
// @grant none
// ==/UserScript==
TD.decider.updateFromBackend = _.wrap(TD.decider.updateFromBackend, (function(func, dict) {
dict.hearts_and_likes2 = false
@twilight-sparkle-irl
twilight-sparkle-irl / fixtd.user.js
Created April 1, 2016 09:48
Tweetdeck just added an engagement filter that hides tweets that it thinks you won't like. Use this script to disable it.
// ==UserScript==
// @name Fix Tweetdeck
// @namespace NO_BOOT_DEVICE/antiengagementfilter
// @description Tweetdeck made it so you can't see all of your timeline and some posts will just go to the VOID. this fixes that
// @include https://tweetdeck.twitter.com/*
// @version 1
// @grant none
// ==/UserScript==
TD.decider.updateFromBackend = _.wrap(TD.decider.updateFromBackend, (function(func, dict) {
dict.hearts_and_likes2 = false // delete this line to get hearts and likes instead of favorites
@twilight-sparkle-irl
twilight-sparkle-irl / userscript.md
Last active August 18, 2016 04:41
Aggressive Userscripting For Et Cetera

So, recently I've seen an uptick in stuff like SystemJS and Webpack on the clientside.
This basically kills userscripting, which is very rude.
However, you can still get around this by completely proxying everything.

Let's take pony.town for example. A very antiuserscripting site.

What you'll want to do is download the script used to bootstrap and edit it to your hearts desire. You can do this by popping open the inspector, and looking for the path needed. I have an old script that you can adapt if you so desire. Instead of having to access and overwrite things from window, without the contexts needed and being unable to peek inside closures, you can now just serve up your own modifications to the script.

@twilight-sparkle-irl
twilight-sparkle-irl / tdtwc.user.js
Last active September 1, 2016 19:48
Fix Twitter Cards in TweetDeck
// ==UserScript==
// @name Fix Twitter Cards in TweetDeck
// @namespace https://twitter.com/NO_BOOT_DEVICE/status/771432971739930624
// @description Fixes certain embeds for media like youtu.be not appearing
// @include https://tweetdeck.twitter.com/*
// @include http://tweetdeck.twitter.com/*
// ==/UserScript==
TD.services.TwitterMedia.YFROG_RE = /(?:(?:https?\:\/\/)?(?:www\.)?)?yfrog.com\/\w+/
TD.services.TwitterMedia.PLIXI_RE = /(?:(?:https?\:\/\/)?(?:www\.)?)?plixi.com\/p\/[0-9]+/
TD.services.TwitterMedia.LOCKERZ_RE = /(?:(?:https?\:\/\/)?(?:www\.)?)?lockerz.com\/s\/[0-9]+/
@twilight-sparkle-irl
twilight-sparkle-irl / webcrack.js
Last active February 5, 2024 09:25
webcrack: mess with webpacked (webpackJsonp) applications
// webcrack, a script that allows you to break webpack.js's sandbox and randomization easily
// made by @yourcompanionAI
// licensed under the trust that you will credit me for my work visibly and other than that you can go have fun with this
// window.wc is the webcrack object
// wc.get gives you the module attached to the id you give it.
// literally just what webpack functions use. not much to it
// this is the basic part of all this, everything else is just to allow you to updateproof your code
// both find functions return modules in this format:
@twilight-sparkle-irl
twilight-sparkle-irl / tddecide.user.js
Last active January 13, 2017 15:11
Change TD.decider decisions.
// ==UserScript==
// @name Fix Tweetdeck
// @namespace NO_BOOT_DEVICE/decideformyself
// @description Allows you to edit decider decisions.
// @include https://tweetdeck.twitter.com/*
// @include http://tweetdeck.twitter.com/*
// @version 1
// @grant none
// ==/UserScript==
@twilight-sparkle-irl
twilight-sparkle-irl / decisions.user.js
Created March 30, 2017 16:30
Allows you to change TweetDeck decider options
// This can be run by both pasting it into the Javascript console
// and by using it as a userscript.
// == CONFIG ==
// You can view more TD.deciders by running
// TD.decider.getAll() in the JS console.
window.decider_override = {
"hearts_and_likes2": true, // revert likes to favorites
"dm_rounded_avatars": false, // make avatars in dms nonround
"simplified_replies": false // remove "Replying to" replacing mentions
@twilight-sparkle-irl
twilight-sparkle-irl / webcrack.discord.min.js
Last active February 10, 2019 17:18
Updated version of webcrack.js for Discord
// webcrack, a script that allows you to break webpack.js's sandbox and randomization easily
// now updated for discord! (again)
// made by @b@icosahedron.website
// licensed under the MIT license
// window.wc is the webcrack object
// wc.get gives you the module attached to the id you give it.
// literally just what webpack functions use. not much to it
// this is the basic part of all this, everything else is just to allow you to updateproof your code
@twilight-sparkle-irl
twilight-sparkle-irl / potions.txt
Created October 19, 2017 20:31
a...list of potion names?
Malevolent
Rudimentary body potion
Oculus Potion
Ever
Hermadeye Glo Poils
Rano Potion
Grand Potion
Solution Antidote
Befuddlemishing Potion Potion
Girding Potion
@twilight-sparkle-irl
twilight-sparkle-irl / example.com.conf
Created October 31, 2018 16:04
nginx map location based on cookie (for when you want to test a site but give a static page to everyone else)
# everyone, by default, will go to @underconstruction
# however, if you set cookienamehere=cookievaluehere, you get sent to @testbed instead
# by default, @under_construction shows static files from /var/www/under_construction
# by default, @testbed proxypasses to http://127.0.0.1:3000
# change those to do whatever youw ant
# if you want
# you can change $cookie_cookienamehere to $remote_addr and replace the "~cookievaluehere" with your ip
# that'll make it so that it's based on ip instead of cookie