Skip to content

Instantly share code, notes, and snippets.

@karlwilbur
karlwilbur / YouTube-ad-skipper.js
Created December 1, 2020 19:49
YouTube Ad Skipper Bookmarklet
javascript:(function()%7Bfunction callback()%7B(function(%24)%7Bvar jQuery%3D%24%3Bwindow.%24%3D%24%3BsetInterval("window.%24('.ytp-ad-skip-button') %26%26 window.%24('.ytp-ad-skip-button').click()"%2C 1000)%7D)(jQuery.noConflict(true))%7Dvar s%3Ddocument.createElement("script")%3Bs.src%3D"https%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fjquery%2F1.11.1%2Fjquery.min.js"%3Bif(s.addEventListener)%7Bs.addEventListener("load"%2Ccallback%2Cfalse)%7Delse if(s.readyState)%7Bs.onreadystatechange%3Dcallback%7Ddocument.body.appendChild(s)%3B%7D)()
@RabaDabaDoba
RabaDabaDoba / ANSI-color-codes.h
Last active September 12, 2024 17:26 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes working in C!
/*
* This is free and unencumbered software released into the public domain.
*
* For more information, please refer to <https://unlicense.org>
*/
//Regular text
#define BLK "\e[0;30m"
#define RED "\e[0;31m"
#define GRN "\e[0;32m"