Skip to content

Instantly share code, notes, and snippets.

View joshparkerj's full-sized avatar
🥰

Josh Parker joshparkerj

🥰
View GitHub Profile
@joshparkerj
joshparkerj / highlightify.meta.js
Last active April 25, 2022 19:36
highlight the text you select
// ==UserScript==
// @name Highlightify
// @namespace http://tampermonkey.net/
// @version 0.1
// @description highlight the text you select
// @author Josh Parker
// @source https://github.com/joshparkerj/silly-internet-tricks/blob/main/text-effect/highlightify.user.js
// @downloadURL https://gist.github.com/joshparkerj/c57b5d96eb5ea00886ec132424a0dc4e/raw/highlightify.user.js
// @updateURL https://gist.github.com/joshparkerj/c57b5d96eb5ea00886ec132424a0dc4e/raw/highlightify.meta.js
// @match https://www.bls.gov/oes/*
@joshparkerj
joshparkerj / roughify-svg.user.js
Last active April 25, 2022 19:36
Roughify Svgs
// ==UserScript==
// @name Roughify Svgs
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Roughify Svgs
// @author Josh Parker
// @match https://en.wikipedia.org/wiki/*
// @require https://unpkg.com/roughjs@latest/bundled/rough.js
// @icon https://www.google.com/s2/favicons?domain=wikipedia.org
// @grant none
@joshparkerj
joshparkerj / show-svgs.meta.js
Last active October 15, 2022 11:51
show svgs
// ==UserScript==
// @name show svgs
// @namespace http://tampermonkey.net/
// @version 0.1
// @description show svgs
// @author Josh Parker
// @source https://github.com/joshparkerj/silly-internet-tricks/blob/main/wikipedia/show-svgs.user.js
// @downloadURL https://gist.github.com/joshparkerj/387e6798a4b5cb2e64e21bb2daf7d6fc/raw/show-svgs.user.js
// @updateURL https://gist.github.com/joshparkerj/387e6798a4b5cb2e64e21bb2daf7d6fc/raw/show-svgs.meta.js
// @match https://en.wikipedia.org/wiki/*
@joshparkerj
joshparkerj / covid-table.user.js
Created December 28, 2021 20:56
Show the numbers in tabular format (any US state for now)
// ==UserScript==
// @name worldometer covid table
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Show the numbers in tabular format (any US state for now)
// @author Josh Parker
// @match https://www.worldometers.info/coronavirus/usa/*
// @icon https://www.google.com/s2/favicons?domain=worldometers.info
// @grant none
// ==/UserScript==
@joshparkerj
joshparkerj / fix-selection-color.user.js
Created December 29, 2021 16:57
The selection color is whiteish and I thought it wasn't selecting at all. Oops.
// ==UserScript==
// @name fix selection color
// @namespace http://tampermonkey.net/
// @version 0.1
// @description The selection color is whiteish and I thought it wasn't selecting at all. Oops.
// @author Josh Parker
// @match https://www.blunt-therapy.com/*
// @icon https://www.google.com/s2/favicons?domain=blunt-therapy.com
// @grant none
// ==/UserScript==
@joshparkerj
joshparkerj / lace-up.txt
Last active March 17, 2022 21:52
Lace Up
https://www.google.com/maps/dir/38,-88.0161573/39,-84.8504151/40,-87.5322295/41,-84.8032953/@38.9712608,-86.7695848,7z/data=!4m2!4m1!3e0
https://www.google.com/maps/dir/49,-97.2069842/48,-89.5876878/47,-96.8210435/46,-92.4629452/45,-96.4520027/44,-91.4685719/@45,-96,6z/data=!4m2!4m1!3e0
https://www.google.com/maps/dir/27,-97.4774721/28,-99.9564214/29,-95.2259266/30,-104.6814199/31,-93.6098572/32,-106.6185705/33,-94.0476401/34,-103.0437105/35,-100.0082043/36,-102.8953342/@30,-104,5z/data=!4m2!4m1!3e0?hl=en
@joshparkerj
joshparkerj / App.js
Created April 16, 2022 05:54
example of how to use an effect only once even though strict mode remounts the component
import React from 'react'
import {useState, useEffect, useRef} from 'react'
function App() {
const [ques, setQues] = useState([])
const gettingQuiz = useRef(false)
const getQuiz = async ()=>{
gettingQuiz.current = true
const url = "https://opentdb.com/api.php?amount=10"
const res = await fetch(url)
@joshparkerj
joshparkerj / text-effect.meta.js
Last active April 25, 2022 19:36
a variety of text effects just for fun.
// ==UserScript==
// @name text effect
// @namespace http://tampermonkey.net/
// @version 0.1
// @description a variety of text effects just for fun.
// @author Josh Parker
// @source https://github.com/joshparkerj/silly-internet-tricks/blob/main/text-effect/text-effect.user.js
// @downloadURL https://gist.github.com/joshparkerj/62d580a9039115b4ab73f8588e48a2b3/raw/text-effect.user.js
// @updateURL https://gist.github.com/joshparkerj/62d580a9039115b4ab73f8588e48a2b3/raw/text-effect.meta.js
// @match https://www.theatlantic.com/*
@joshparkerj
joshparkerj / four-column-responsive.meta.js
Last active April 25, 2022 19:36
render text in as many as four columns, depending on display size
// ==UserScript==
// @name Four Column Responsive
// @namespace http://tampermonkey.net/
// @version 0.1
// @description render text in as many as four columns, depending on display size
// @author Josh Parker
// @source https://github.com/joshparkerj/silly-internet-tricks/blob/main/wikipedia/four-column-responsive.user.js
// @downloadURL https://gist.github.com/joshparkerj/fbe1e3126cde7f365a9492f951d9bf7a/raw/four-column-responsive.user.js
// @updateURL https://gist.github.com/joshparkerj/fbe1e3126cde7f365a9492f951d9bf7a/raw/four-column-responsive.meta.js
// @match https://en.wikipedia.org/wiki/*
This file has been truncated, but you can view the full file.
[{"algorithm":"diffusion","likes":7,"promptWeights":[1,1,-0.1],"prompts":["New York Stock Exchange Building, 18 Broad Street, Financial District, Lower Manhattan, New York City. A structure influenced by ancient Rome.","Epic 3DS Max render by Ferdinand Knab, Ilya Repin, Michael Vincent Manalo. Trending on Artstation. Cinematic, clear, complex, detailed, hyperrealistic, ray tracing, vibrant, vivid.","aerial, blur, bokeh, diorama, dirty, figures, framed, geometric, incomplete, mosaic, mundane, murky, museum, negative space, noisy, paint flecks, people, scratches, simple, spots, stormy, text, tilt shift, unclear, undeveloped, watermark"],"resolution":"thumb","runtime":"short","seed":995431,"preset":"none","url":"https://creator.nightcafe.studio/creation/F0C9hU4KJt9zQqWMk0Zc"},{"algorithm":"diffusion","likes":7,"promptWeights":[1],"prompts":["New York Stock Exchange Building, by Ferdinand Knab, Ilya Repin, Michael Vincent Manalo. Epic 3DS Max render of a structure designed in the Classical Revival style."],"resol