Skip to content

Instantly share code, notes, and snippets.

// This is a hack, a quick and dirty console script for RT/tweets (with replies) removal w/o API
// To be used in: https://twitter.com/Username/with_replies
// Set your username (without @) below (case-sensitive) to correctly trigger the right Menu
const tweetUser = 'Username'
// BUG, With above we still trigger Menu on some replies but relatively harmless.
// @Hack Implement simple has() for querySelector
const querySelectorHas = function( parent, child ){
@TigerXXX
TigerXXX / main.js
Created September 25, 2018 08:12 — forked from NazarkinRoman/main.js
Improved version of Draggable without jQuery UI https://css-tricks.com/snippets/jquery/draggable-without-jquery-ui/
// bug - on each click this code creates a new event listener for all $drag parents
// serious lack of memory and permormance
// solution - unbind this event on 'mouseup' and make 'mouseup' once-executable via one()
(function($) {
$.fn.drags = function(opt) {
opt = $.extend({handle: '', cursor: 'move'}, opt);
if(opt.handle === '') {