Skip to content

Instantly share code, notes, and snippets.

@CairX
CairX / yt-hide-live-chat.user.js
Last active April 4, 2021 11:46
YouTube: Hide Live Chat
// ==UserScript==
// @name YouTube: Hide Live Chat
// @namespace https://gist.github.com/CairX
// @version 0.1
// @grant none
// @include https://www.youtube.com/*
// @run-at document-end
// ==/UserScript==
// An alternative approach would be:
// ==UserScript==
// @name The Opinion Machine
// @description Hide content as a reminder of the opinion machine.
// @namespace https://gist.github.com/CairX
// @version 0.1
// @grant none
// @include https://www.reddit.com/*
// @include https://news.ycombinator.com/*
// @run-at document-end
// ==/UserScript==

b|2 and GLFW

Question / Problem

I'm running into issues setting up a project to use GLFW as an unpackaged dependency.

I'm a complete beginner at using build2. This is the first project I'm trying to setup. I have used C++ for a few years, but have never gotten very comfortable with all the C++ toolchains.

Any help would be greatly appreciated.

#include <cmath>
#include <iostream>
struct vec {
float x, y;
vec(float x, float y) : x(x), y(y) {}
friend std::ostream& operator<<(std::ostream &os, const vec &v);
static float length(const vec &v) {
@CairX
CairX / cr-hide-comments.user.js
Last active August 17, 2022 10:28
Crunchyroll: Hide comments.
// ==UserScript==
// @name Crunchyroll: Hide Comments
// @namespace https://gist.github.com/CairX
// @version 0.2
// @grant none
// @include /https?:\/\/(.*)?\.crunchyroll\.com\/*/
// @run-at document-end
// ==/UserScript==
var style = document.createElement("style");
@CairX
CairX / yt-hide-comments.user.js
Last active April 4, 2021 11:45
YouTube: Hide Comments
// ==UserScript==
// @name YouTube: Hide Comments
// @namespace https://gist.github.com/CairX
// @version 0.1
// @grant none
// @include https://www.youtube.com/*
// @run-at document-end
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am cairx on github.
  • I am cairns (https://keybase.io/cairns) on keybase.
  • I have a public key ASAmyyXXH5XPKGKjZcfA6_GvJV8P_BZYnnEKm8ttU-b7xQo

To claim this, I am signing this object:

@CairX
CairX / yt-relative-header.user.js
Last active December 26, 2019 07:27
YouTube: Disable the sticky ability of the search bar.
// ==UserScript==
// @name YouTube: Relative Header
// @namespace https://gist.github.com/CairX
// @description Disable the sticky ability of the YouTube search bar.
// @include https://www.youtube.com/*
// @version 0.1
// @grant none
// @noframes
// ==/UserScript==
// ==UserScript==
// @name Animefreak Cleaner
// @namespace http://tcode.se/scripts
// @description Changes the visual style of Animefreak with the goal to make it less cluttered.
// @include http://www.animefreak.tv/watch/*episode-*
// @version 0.1
// @grant none
// @noframes
// ==/UserScript==
// ==UserScript==
// @name Animefreak Resizer
// @namespace http://tcode.se/scripts
// @description Option to resize videos.
// @include http://www.animefreak.tv/*
// @version 0.3
// @grant none
// @noframes
// @run-at document-end
// ==/UserScript==