Skip to content

Instantly share code, notes, and snippets.

View jojobyte's full-sized avatar

jojobyte

View GitHub Profile
@jojobyte
jojobyte / 👎🏻 YT Dislikes.js
Last active February 10, 2026 01:05
Bookmarklet to display estimated YouTube Dislikes based on returnyoutubedislikeapi.com. Paste as the URL inside a bookmark.
javascript:void function(){
let a=new URL(location).searchParams.get("v"),
b=new Intl.NumberFormat("en-US"),
c=trustedTypes.createPolicy("forceInner", { createHTML: a => a });
fetch(`https://returnyoutubedislikeapi.com/Votes?videoId=${a}`).then(a=>a?.text?.())
.then(a => "{" === a[0] && JSON.parse(a) || a)
.then(a => {
console.log("dislikes",a);
a?.dislikes && document.body.insertAdjacentHTML(
"beforeend",
@jojobyte
jojobyte / 1x_normal_speed.js
Created February 10, 2026 00:57
Bookmarklets to increase the playback rate of video or audio elements. Paste as the URL inside a bookmark.
javascript:void function(){
document.querySelectorAll("video,audio").forEach(function(c){
let a=c.playbackRate;
c.playbackRate=1,
console.log(`changed media playback rate from ${a} to ${c.playbackRate}`)
})
}();
@jojobyte
jojobyte / VideoPiP.js
Created February 10, 2026 00:50
Bookmarklet to find the first video element and make it Picture-in-Picture. Paste as the URL inside a bookmark.
javascript:void function(){
if (!document.pictureInPictureEnabled) {
console.log("Your browser cannot use picture-in-picture")
return;
}
document.querySelector("video").requestPictureInPicture()
}();
@jojobyte
jojobyte / Dependencies.js
Created February 10, 2026 00:36
Bookmarklet to reveal package.json dependencies on github.
javascript:void function(){
(async function(){
let j = document,
k = (...a) => j.querySelectorAll(...a),
l = ((...a) => j.querySelector(...a))(
'tr.react-directory-row a[title="package.json"]',
)?.href?.replace("blob", "raw"),
{ dependencies: h, devDependencies: a } = await window
.fetch(l)
.then((a) => a.json()),
@jojobyte
jojobyte / Dialgänger.js
Created February 10, 2026 00:20
Bookmarklet to invert the colors of a website with Controls. One click inverts, second click removes the inversion. Paste as the URL inside a bookmark.
javascript:void function(){
let b='#fff',toggle=true,i=95,ii=0,ia=100,h=180,hi=0,ha=360;
const d=document,ce=(n)=>d.createElement(n),q=d.querySelectorAll(".dplgngr"),s=ce("style"),c=ce("form"),t='Doppelgänger';
if(q?.length)return q.forEach(a=>a.remove());
const invertStyles = (b,i,h) => `html { background-color: ${b}; }
html,img,video,iframe { filter: invert(${i}%) hue-rotate(${h}deg); }`;
const styles = (b,i,h,t) => `${t ? invertStyles(b,i,h) : ''}
.dplgngr fieldset { border: 0 solid transparent; margin-top: 1em; padding: 0; display: grid; grid-template-areas: "l l" "r n"; grid-template-columns: 2fr 1fr; column-gap: 1em; }
.dplgngr label { grid-area: l; }
@jojobyte
jojobyte / Doppelgänger.js
Created February 10, 2026 00:17
Bookmarklet to invert the colors of a website. One click inverts, second click removes the inversion. Paste as the URL inside a bookmark.
javascript:void function(){
const d=document,q=d.querySelectorAll("style.dplgngr"),s=d.createElement("style");
if(q?.length)return q.forEach(a=>a.remove());
let b='#fff',i='95',h='180';
s.type="text/css";
s.className="dplgngr";
s.innerText=`
html { background-color: ${b}; }
html,img,video,iframe { filter: invert(${i}%) hue-rotate(${h}deg); }
`;
@artynet
artynet / buildnode-raspbpi2-v7.sh
Last active July 17, 2017 19:05
Simple bash script to cross-compile node.js source (v7 release as well) for RPi2 platform
#!/bin/bash
## Node.js for Raspberry Pi 2 Packaging Script
## =========================================
## Use like this:
## ./buildnode.sh <node_tarball_version>
clean () {
rm -rvf node-v$1 node-v$1-rpi2
}
@jagrosh
jagrosh / WebhookTutorial.md
Last active May 8, 2025 00:13
Simple Webhook Tutorial (Twitter -> Discord)

Simple Webhook Tutorial

In this tutorial, I will be explaining how to set up a simple webhook to relay your tweets to a Discord channel

Step 1 - Register on Zapier

  1. Go to https://zapier.com/ and create an account (if you don't already have one).

Step 2 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send Tweets
@SnowMB
SnowMB / docker-compose.yml
Last active November 9, 2019 20:42
nextcloud_nginx_letsencrypt_mariadb
version: '2'
services:
nginx:
image: jwilder/nginx-proxy
container_name: nginx
ports:
- 80:80
- 443:443