This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 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* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 [email protected] | |
set targetService to id of 1st service whose service type = iMessage | |