Skip to content

Instantly share code, notes, and snippets.

View Windows81's full-sized avatar
🧊
Keep Byfron Bypassed™

VisualPlugin Windows81

🧊
Keep Byfron Bypassed™
View GitHub Profile
@Windows81
Windows81 / .lua
Last active November 2, 2021 02:14
Run this on your Rōblox script executor to hide all GUIs, including CoreGUIs.
local uis = game:GetService("UserInputService")
if _G.hiddenGuis then
for g, e in next, _G.hiddenGuis do
if typeof(g) == 'Instance' then g.Enabled = e end
end
uis.MouseIconEnabled = _G.hiddenGuis.icon
_G.hiddenGuis = nil
else
local t = {icon = uis.MouseIconEnabled}
uis.MouseIconEnabled = false
@Windows81
Windows81 / .js
Last active January 23, 2021 09:33
Retrieves a list of links to some interesting colours you can name on ColorNames...
// http://www.mieliestronk.com/corncob_caps.txt
document.body.innerText.split('\n').filter(v=>/^[ABCDEFOTIS]{6}$/.test(v)).map(v=>'https://colornames.org/color/'+v
.replaceAll('O','0')
.replaceAll('I','1')
.replaceAll('S','5')
.replaceAll('T','7'))
.join('\n')
@Windows81
Windows81 / .lua
Created January 1, 2021 08:10
Run this on your Rōblox client code-executor software to get some snazzy camera angles.
--Each pair consists of a camera position and focus.
local cfs={
Vector3.new(42,48,200),Vector3.new(76,48,237),
Vector3.new(-52,48,200),Vector3.new(-86,48,237),
Vector3.new(-.25,18,127),Vector3.new(-.25,6,0),
Vector3.new(170,100,-70),Vector3.new(-.25,30,30),
}
game.workspace.CurrentCamera.CameraType='Scriptable'
_G.running=true
@Windows81
Windows81 / .ps1
Last active April 23, 2021 20:04
A PowerShell script that retrieves video metadata for my Unlisted Ads playlists. Please don't abuse it.
$k='AIzaSyBZBpp5F7A7C9q38arfOfGr209ZTfWIhUc';$l=@();$t='';@('PLO5PZUR0wDLCPtDaQijov4MyDi9_5xiMS','PLO5PZUR0wDLAxqyurUAZOSfE9NjUuI2nY')|%{do{$j=iwr "https://content-youtube.googleapis.com/youtube/v3/playlistItems?maxResults=50&playlistId=$_&part=snippet&key=$k&pageToken=$t"|ConvertFrom-Json;$t=$j.nextPageToken;$l+=$j.items|%{@{videoId=$_.snippet.resourceId.videoId;title=$_.snippet.title;description=$_.snippet.description}}}while($t);}
@Windows81
Windows81 / .js
Last active April 27, 2023 04:47
Run this on a GitHub code page to retrieve a list of cURL command lines to download raw files.
console.log(Array.from(document.querySelectorAll('.Link--primary')).map(v=>
`curl -s -L ${v.href.replace(/(github\.com\/.+\/.+\/)blob/i,'$1raw')} -o ${v.innerText}\n`
).join(''))
@Windows81
Windows81 / .js
Created July 24, 2020 21:52
Run in browser console to estimate how long you've been working on a project on ROBLOX (based on save-states)
var ID=4794911592
var MIN_THRESH=1;
var MAX_THRESH=5;
var a=[];
(async()=>{
var page=1
for(let c=1;c<=page;c++){
var r=await (await fetch(`https://www.roblox.com/places/version-history-items?assetID=${ID}&page=${c}`)).text();
a.push(r.match(/\d{1,2}\/\d{1,2}\/\d{4} \d{1,2}:\d{2}:\d{2} [AP]M/g).map(v=>Date.parse(v)));
@Windows81
Windows81 / .js
Created April 30, 2020 18:23
Use this to bypass the ten-rule limit imposed by Requestly's bronze plan.
RQ.featureManager.getFeatureLimits=function(){return Number.MAX_SAFE_INTEGER}
@Windows81
Windows81 / pearson_suxx.sh
Created March 10, 2020 03:46
Scrapes access codes for Pearson's proprietary educational service.
#!/usr/bin/env bash
code="";
for i in {1..6};
do code="$(head /dev/urandom | tr -dc A-Z | head -c 5)-$code";
done;
code=${code::-1}; echo $code;
curl "https://registration.mypearson.com/products/$code" -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Cache-Control: no-cache' -H 'Accept: */*' -H 'Sec-Fetch-Dest: empty' -H 'X-Authorization: token=109411658|1583810166866|NNTTPsSFy90+MNo/a1Kg creU10Zq6RCd/17c9SW6DCw=' -H 'X-Requested-With: XMLHttpRequest' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'
@Windows81
Windows81 / .js
Last active February 29, 2020 20:12
Function that solves the Water Jug Riddle
function f(T,t,cn=0,l=[]){if(!s.includes(ch(t))){console.log(cn,t);l.push(t);s.push(ch(t));for(var c=0;c<T.length;c++)for(var C=0;C<T.length;C++){if(C==c)continue;var n=t.slice(0);var d=Math.min(T[c]-n[c],n[C]);n[C]-=d;n[c]+=d;f(T,n,cn+1,l)}}}
@Windows81
Windows81 / .js
Last active March 2, 2022 20:29
SRT/VTT Subtitle Reverser
// SRT or VTT string is stored in variable 's'.
var time=27*60000+11463 // Time of video in milliseconds.
var mult=5444/5444 // Timestamp multiplier AFTER 'time' offset.
var index=0
var isVtt
function f(v,i,a){
if(v=='WEBVTT'){
isVtt=true
return''