This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector("#global-actions").appendChild(document.querySelector("#global-actions>li.moments.js-moments-tab")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @match https://twitter.com/i/connec* | |
// @author onteria_ | |
// @version 2.0 | |
// ==/UserScript== | |
// Author: @onteria_ | |
// This is a script that is meant to hide recently | |
// added "retweet of retweet" and "favorite of retweet" | |
// which have no options to disable and can get rather |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ---------- definition ---------- | |
class Object | |
def define_singleton_method(name, method = nil, &block) | |
unless !!(method) ^ !!(block) | |
raise ArgumentError, "Only one method should be given" | |
end | |
source_object = self | |
Module.new do | |
define_method(name, method || block) |