Skip to content

Instantly share code, notes, and snippets.

View leaf456's full-sized avatar
๐Ÿˆ
Attaching hands to cats tails

leaf456

๐Ÿˆ
Attaching hands to cats tails
View GitHub Profile

Some pretty simple blooket hacks that make the correct answer always positioned at the top-left answer. Usage: copy the code, in your browser right click the bookmark bar (press ctrl+shift+b if you don't see the bookmark bar) and click "add page". Set the title to whatever you want, and set the URL to the code you copied (press ctrl+v to paste). Then, go onto the blooket tab and click the bookmark IMPORTANT: YES, DO THIS WHILE ON THE BLOOKET TAB, IT WONT GET RID OF YOUR GAME. Timing doesn't matter, you can do it at the start of the game or middle or whenever. Enter the game pin in the box labelled "Insert game ID" and click "Steal answers". Wait a few seconds and the game should be hacked.

Code:

javascript:if(putAnswerAtBegining=function(){let e=0,t=document.getElementsByClassName("_answersHolder_1brbq_62")[0],n=t.children.length;console.log("Number of answers: ",n);let l=document.getElementsByClassName("_questionText_1brbq_14")[0].children[0].innerText;console.log(l);let o=answersForEverything.ques

Sound waves online games hacks

I was bored so I made these "hacks" for an online education system called "sound waves", idk what half of them even do but if you can make use of them, feel free to :)

Btw they're bookmarklets so you add them like a "bookmark" with the url as the code.

"Ducker" javascript:setInterval(function(){window['duckie_object'].ducks.walk(); console.log("HACK")}, window.prompt("How fast?%20(in%20seconds)%22)%20*%201000);

"Play the song!" javascript:theme_sound.play();

meta:
id: asset_car_bom_tree
endian: be
seq:
- id: magic
contents: [BOMStore]
doc-ref: https://github.com/iineva/bom/blob/main/pkg/bom/bom.go
- id: version
type: u4
- id: number_of_blocks
@leaf456
leaf456 / tri.md
Last active December 20, 2022 09:51
Triangle to triangle collision detection

Simple triangle to triangle collision detection

function intersects(a,b,c,d,p,q,r,s) {
				var det, gamma, lambda;
				det = (c - a) * (s - q) - (r - p) * (d - b);
				if (det === 0) {
					return false;
				} else {
					lambda = ((s - q) * (r - a) + (p - r) * (s - b)) / det;
					gamma = ((b - d) * (r - a) + (c - a) * (s - b)) / det;