Skip to content

Instantly share code, notes, and snippets.

View ckarnell's full-sized avatar

Cohen Karnell ckarnell

  • formation.bio
  • New York City
View GitHub Profile
@ckarnell
ckarnell / gist:8632685e240a017c74307e0ae9ad7e3a
Last active April 22, 2023 22:51
Remove twitter blue and blocked tweets from twitter on load and on scroll
// ==UserScript==
// @name Remove Verified and Blocked Accounts on Twitter Scroll
// @namespace remove-verified-blocked-accounts-on-twitter-scroll
// @version 1
// @description Remove verified and blocked accounts when you finish scrolling down the Twitter feed.
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
(function() {
file:///Users/cohen/midas-configuration/node_modules/axios/lib/core/settle.js:19
reject(new AxiosError(
^
AxiosError: Request failed with status code 413
at settle (file:///Users/cohen/midas-configuration/node_modules/axios/lib/core/settle.js:19:12)
at Unzip.handleStreamEnd (file:///Users/cohen/midas-configuration/node_modules/axios/lib/adapters/http.js:570:11)
at Unzip.emit (node:events:525:35)
at Unzip.emit (node:domain:489:12)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
from flask import Flask
import random
import re
import chardet
app = Flask(__name__)
def detect_encoding(filename):
with open(filename, 'rb') as f:
raw_data = f.read()
// ==UserScript==
// @name PickerWheel: set "water world" weight to 1% of total weights
// @namespace pw-weight
// @match https://pickerwheel.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function () {
const TARGET = "water world";