Skip to content

Instantly share code, notes, and snippets.

View twilight-sparkle-irl's full-sized avatar
:shipit:
:shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit:

twilight sparkle twilight-sparkle-irl

:shipit:
:shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit:
View GitHub Profile
@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 / 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 / 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 / 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