Skip to content

Instantly share code, notes, and snippets.

{
"key": "test",
"success": true,
"numnum": 8763
}
@illuminist
illuminist / rickrolldetector.user.js
Last active June 29, 2020 13:12
Detect Rick Roll on Reddit.com
// ==UserScript==
// @name Rick Roll Detector
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Detect Rick Roll on Reddit
// @author /u/illuminist_ova
// @match https://www.reddit.com/*
// @grant none
// ==/UserScript==
import React, { Component } from "react";
import Humanize from "humanize-plus";
function ConnectedInput(props) {
const [editedValue, setValue] = React.useState('')
const [isEditing, setEditing] = React.useState(false)
const handleChange = (e) => {
setValue(e.target.value)
props.inputOnChange(e)