Skip to content

Instantly share code, notes, and snippets.

@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active May 3, 2024 11:24
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@kristopherjohnson
kristopherjohnson / pipe-forward.swift
Last active March 29, 2024 19:44
Swift: define F#-style pipe-forward (|>) operator that evaluates from left to right.
// F#'s "pipe-forward" |> operator
//
// Also "Optional-chaining" operators |>! and |>&
//
// And adapters for standard library map/filter/sorted
infix operator |> { precedence 50 associativity left }
infix operator |>! { precedence 50 associativity left }
infix operator |>& { precedence 50 associativity left }
infix operator |>* { precedence 50 associativity left }
@andybrice
andybrice / wikiwidth
Last active August 29, 2015 13:59
Custom CSS to limit Wikipedia articles to a more readable width
// Log into Wikipedia and paste this into your custom CSS.
// This can be found at: Preferences -> Appearance -> Custom CSS
// It will limit articles to a more readable width on larger screens.
#firstHeading, #bodyContent {
max-width: 780px;
margin-left: auto;
margin-right: auto;
position: relative;
}
@dai-shi
dai-shi / kineticjs-test20130417.html
Created April 17, 2013 14:01
KineticJSでHelloWorld
<!doctype html>
<html>
<head>
<title>canvas test</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<style>
html, body {