Skip to content

Instantly share code, notes, and snippets.

View Jack5079's full-sized avatar
:octocat:

Jack W. Jack5079

:octocat:
View GitHub Profile
@Jack5079
Jack5079 / even.js
Last active May 21, 2021 20:03
Shared Piano destroyer
const notes = [...document.querySelector('piano-keyboard').shadowRoot.querySelectorAll('piano-keyboard-octave')].map(oct=>oct.shadowRoot.querySelectorAll('piano-keyboard-note')).map((a)=>Array.from(a)).flat()
async function trollar () {
for (const note of notes.filter((_,e)=>e%2==0)) {
note.clicked = true
}
await new Promise(r=>setTimeout(r,5))
for (const note of notes.filter((_,e)=>e%2==0)) {
note.clicked = false
note.release()
@Jack5079
Jack5079 / download.js
Last active June 22, 2020 03:05
download
const div = document.createElement('div')
div.innerHTML = `
<paper-button noink="" class="style-scope ytd-subscribe-button-renderer" role="button" tabindex="0" animated="" elevation="0" aria-disabled="false" aria-label="Download to your PC" style="background: blue"><!--css-build:shady--><!--css-build:shady-->
<yt-formatted-string class="style-scope ytd-subscribe-button-renderer">Download</yt-formatted-string>
</paper-button>
`
const [button] = div.children
document.querySelector('ytd-subscribe-button-renderer').appendChild(button)
button.innerText = 'Download'
button.addEventListener('click', ()=>location.href='https://projectlounge.pw/ytdl/download?url=https://youtube.com/'+encodeURIComponent(location.search))
@Jack5079
Jack5079 / bios.lua
Last active April 19, 2022 04:35
lol
local comp = require('component')
comp.eeprom.set('')
comp.eeprom.setLabel('Wiped BIOS')
computer.shutdown(true) -- reboot
@Jack5079
Jack5079 / index.js
Created April 26, 2020 18:45
numbers
Math.round(5**079).toPrecision(56)
Math.round(5**5.3018) // 5079
@Jack5079
Jack5079 / OUTPUT.md
Last active April 17, 2020 21:41
powershell binary counting
Code:\Command Line\PowerShell ▸ .\counter.ps1
Number to count to: 275
        █
       █ 
       ██
      █  
      █ █
      ██ 
      ███
@Jack5079
Jack5079 / lovers.js
Last active April 12, 2020 00:25
get list of raymond lovers (use on https://nookazon.com/product/1096505003)
const getRaymondHaters = () => new Promise(resolve => {
(function scroll(callback) {
const button = document.querySelector('.see-all-btn-bar > button')
if (button) {
button.scrollIntoView() // so it loads properly for some reason
button.click() // load more
setTimeout(scroll, 300) // account for lag
} else {
// Raymond lovers list is complete
resolve(
const css = obj => Object.entries(obj).map(([key, val]) => `${key}: ${val};`).join('\n')
@Jack5079
Jack5079 / circ.ts
Last active April 9, 2020 20:52
remove circluar
const removeCirc = obj => Object.fromEntries(Object.entries(obj).filter(([key, val])=>val !== obj))
@Jack5079
Jack5079 / string.js
Created March 30, 2020 01:03
something
[...'A string'].map(str=>str.charCodeAt()).reduce((a, b) => a + b)
@Jack5079
Jack5079 / move.ps1
Last active March 18, 2020 02:17
Move minecraft videos to Minecraft folder
$loc = Read-Host 'Name that folder'
(ls -File).Name | Select-String -Pattern $loc | foreach { mv -Path $_ -Destination "./$(loc)/"}