Skip to content

Instantly share code, notes, and snippets.

@thehowl
Created November 3, 2015 19:48
Show Gist options
  • Save thehowl/baf6395f45bb0c796d37 to your computer and use it in GitHub Desktop.
Save thehowl/baf6395f45bb0c796d37 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name like => fave in notifications
// @namespace http://howl.moe/
// @version 0.1
// @description what
// @author Howl
// @match https://tweetdeck.twitter.com/
// @grant none
// ==/UserScript==
function unmeme() {
$("article.js-stream-item").each(function() {
if ($(this).attr("data-key").substr(0,8) == "favorite" && $(this).children()[0].children[0].children[1].innerHTML.slice(-6) == "liked ") {
$(this).children()[0].children[0].children[1].innerHTML = $(this).children()[0].children[0].children[1].innerHTML.slice(0, -6) + "favourited";
}
});
}
unmeme();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment