Skip to content

Instantly share code, notes, and snippets.

View Apearson75's full-sized avatar
🔏

Apearson75

🔏
View GitHub Profile
@Apearson75
Apearson75 / mini.js
Last active April 30, 2024 19:21
Mathswatch Answer Viewer
javascript:function getCookie(e){const t=`; ${document.cookie}`.split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()}async function getRequest(e,t){const s=await fetch(e,{headers:{accept:"*/*","accept-language":"en-GB,en-US;q=0.9,en;q=0.8","cache-control":"no-cache",pragma:"no-cache","sec-ch-ua":'"Google Chrome";v="117", "Not;A=Brand";v="8", "Chromium";v="117"',"sec-ch-ua-mobile":"?0","sec-ch-ua-platform":'"Windows"',"sec-fetch-dest":"empty","sec-fetch-mode":"cors","sec-fetch-site":"same-origin","x-csrf-token":getCookie("_csrf")},referrer:t,referrerPolicy:"strict-origin-when-cross-origin",body:null,method:"GET",mode:"cors",credentials:"include"});return await s.json()}async function getAnswers(){const e=document.querySelector("#studentmodal > div > div:nth-child(4) > div > div.questioncolumn > div > div.progressblock > div > div.col-sm-10.col-xs-8 > div > div:nth-child(1) > progressbar"),t=currentPage.split("/");let s="Answers Are:";if(100==parseInt(e.getAttribute("value"))&&7==t.length&&"assign
javascript:(async()=>{let r=new Audio("https://cdn.discordapp.com/attachments/853331978538844210/1096471895488081960/silence.mp3");r.loop=!0,r.play();let n=null,i=null,a=null,d=null,s=!1,l=1750,u=0,f="https://catalog.roblox.com/v1/search/items?category=All&limit=120&maxPrice=0&salesTypeFilter=2&SortType=3",p=e=>new Promise(t=>setTimeout(t,e));async function h(){let e=await fetch(`https://apis.roblox.com/marketplace-sales/v1/item/${a}/purchase-item`,{method:"POST",credentials:"include",headers:{"x-csrf-token":Roblox.XsrfToken.getToken(),"Content-Type":"application/json"},body:JSON.stringify({collectibleItemId:a,collectibleProductId:d,expectedCurrency:1,expectedPrice:0,expectedPurchaserId:Roblox.CurrentUser.userId,expectedPurchaserType:"User",expectedSellerId:i,expectedSellerType:"User",idempotencyKey:CoreUtilities.uuidService.generateRandomUuid()})});if(e.status===200){let t=await e.json();t.purchased?(u++,console.log(`Purchased: ${u}`)):t.errorMessage==="QuantityExhausted"?(s=!1,l=1750,console.log("Stock is G
@Apearson75
Apearson75 / LimitedSniper.js
Last active April 14, 2023 16:37
Roblox Limited Sniper
/* ***************************************** */
/* Roblox Limited Sniper */
/* By Apearson */
/* https://github.com/Phoneguytech75 */
/* ***************************************** */
// alert("Made By Apearson");
// alert("Check Console for information");
// Trick to run forever on mobile.
/* ******************************************************* */
/* Roblox Player Follow */
/* ******************************************************* */
const kreek = 140258990;
async function searchPlayer(userID, gameID) {
const userReq = await fetch(`https://thumbnails.roblox.com/v1/users/avatar-headshot?userIds=${userID}&size=48x48&format=Png&isCircular=false`);
const userJSON = await userReq.json();
const userImg = userJSON.data[0].imageUrl;
mkdir ngrok
cd ngrok
wget "https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip"
unzip ngrok-stable-linux-amd64.zip
./ngrok authtoken abc123
./ngrok tcp 22
@Apearson75
Apearson75 / robloxApi.js
Created October 27, 2022 11:36
Http requests from devtools to roblox
// Must be run in the devtools on the roblox website
// Getting data from Roblox API
async function GetRobloxAPI(url){
const urlConfig = {
url: url,
withCredentials: true,
};
return await CoreUtilities.httpService.get(urlConfig);
};
@Apearson75
Apearson75 / randomGame.js
Last active October 27, 2022 11:38
Roblox Random Game
// *******************************************************
// Roblox Random Game Launcher by Me
// *******************************************************
// Put this into the console in the roblox website
function randInt() {
let intThing = Math.floor(Math.random() * 9110570820);
return intThing
}
@Apearson75
Apearson75 / Player.cs
Created December 22, 2021 10:57
Player script for Dual Boot.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Player : MonoBehaviour
{
//Floating
public bool activateFloating = false;
public float horizontalSpeed;