Skip to content

Instantly share code, notes, and snippets.

@gaogao-9
gaogao-9 / moment.js
Last active January 27, 2017 15:40
Twitterはクソ
document.querySelector("#global-actions").appendChild(document.querySelector("#global-actions>li.moments.js-moments-tab"));
@onteria
onteria / retweet_action_mute.user.js
Last active June 20, 2021 13:52
リツイートのふぁぼ・RTをWeb公式で非表示にするChromeユーザースクリプト。インストール方法は( http://egyo.hateblo.jp/entry/20101022/1287713022 )。
// ==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
@maraigue
maraigue / define_singleton_method.rb
Created August 19, 2012 07:03
[Ruby] def文によらずに特異メソッドを定義する To define singleton methods without `def' sentence
# ---------- 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)