Skip to content

Instantly share code, notes, and snippets.

View PostsDesert's full-sized avatar

Griffith Baker PostsDesert

View GitHub Profile
@PostsDesert
PostsDesert / YouTube-homepage-block
Last active August 21, 2024 04:37
Youtube Homepage Block - Blocks YouTube.com homepage without blocking videos, channels, and shorts.
! Title: Youtube Homepage Block
! Description: Blocks YouTube.com homepage without blocking videos, channels, and shorts
! Homepage: https://gist.github.com/PostsDesert/24bdc4f8ec0984454c307cae819c3e47
! License: https://gist.github.com/PostsDesert/24bdc4f8ec0984454c307cae819c3e47
@@||accounts.youtube.com*
||youtube.com^$document
||youtube.com
@@||youtube.com/watch*
@PostsDesert
PostsDesert / reddit-selective-block.txt
Last active April 29, 2024 04:10
Reddit Homepage Block - Blocks reddit.com, r/all and r/popular without blocking subreddits and threads.
! Title: Reddit Homepage Block
! Description: Blocks reddit.com, r/all and r/popular without blocking subreddits and threads.
! Homepage: https://gist.github.com/PostsDesert/ef4d19d901e9f4326b401579ba50b8a3
! License: https://gist.github.com/PostsDesert/ef4d19d901e9f4326b401579ba50b8a3
||reddit.com^$document
||reddit.com
@@||reddit.com/svc/shreddit^
@@||reddit.com/r/*^
||reddit.com/r/all^$important
@PostsDesert
PostsDesert / MoodleBlackout.js
Created May 9, 2023 21:39
A simple program that removes all the answer information from a Moodle quiz to allow for easier review without subconsciously thinking you already know it because you can see the answer. To use, just paste in the inspect element console on the Moodle Quiz review page.
var elements = document.querySelectorAll('.qnbutton, .state, .grade, .outcome, .icon');
for (var i = 0; i < elements.length; i++) {
elements[i].style.opacity = '0.0'; // set initial opacity
elements[i].addEventListener('click', function() {
var opacity = parseFloat(this.style.opacity);
this.style.opacity = opacity ? '' : '0.0'; // toggle opacity
});
}
@PostsDesert
PostsDesert / iMessageSpam.scpt
Last active October 30, 2017 23:15
POC for spamming friends using iMessage
tell application "Messages"
--To get the group id I used "DB Browser for SQLite" and opened "~/Library/Messages/chat.db" after making a backup.
--For Group Chat
set groupid to "<GROUP-ID-HERE>" -- ex. iMessage;+;chat999999999999999999999
--For individual
--Set targetBuddy to email or phone number
set targetBuddy to "<PHONE-OR-EMAIL-HERE>" -- ex. 5515515551 or asdf@gmail.com
set targetService to id of 1st service whose service type = iMessage