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); }
`;
@jojobyte
jojobyte / _maya_example_.js
Last active November 28, 2023 23:29
Calculate Maya Chain balance from REST API data. Zero-Dependencies.
import { getBalance, getPools, getPoolBalances, getLiquidityProviders, } from './fetch.js'
import {
getStableCacaoValue, convertCacaoToStableValue, convertAssetToStableValue, calculateLiquidityPoolBalances,
formatCacaoValue,
} from './calculate.js'
let TARGET_ASSET = 'DASH.DASH'
let STABLE_COIN_ASSET = 'ETH.USDT-0XDAC17F958D2EE523A2206206994597C13D831EC7'
const pools = await getPools()

Keybase proof

I hereby claim:

  • I am jojobyte on github.
  • I am jojobyte (https://keybase.io/jojobyte) on keybase.
  • I have a public key whose fingerprint is 4B83 BD73 2117 517C 8D58 C087 D09C 523A 7AC1 29B0

To claim this, I am signing this object:

username: vagrant
password: vagrant
sudo apt-get update
sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev
sudo aptitude install mysql-server mysql-client
sudo nano /etc/mysql/my.cnf
@jojobyte
jojobyte / ContextCmder-Disable.reg
Last active June 28, 2025 00:14
Cmder Context (Right-Click) Menu for Windows 7, 8, 10 & 11
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]