Skip to content

Instantly share code, notes, and snippets.

View Hyftar's full-sized avatar

Simon Landry Hyftar

View GitHub Profile
@Hyftar
Hyftar / ChromeCast Remover Script
Created April 19, 2018 03:14
Removes the Stream to Chromecast button on YouTube
// ==UserScript==
// @name ChromeCast Remover
// @namespace https://www.youtube.com/
// @version 1.0
// @description Removes the Chrome cast button on YouTube
// @author Hyftar
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
@Hyftar
Hyftar / pattern.js
Last active November 16, 2017 07:12
Cpp header method regex pattern
/^\s*((?:(?:\s*const\s*)|(?:\s*static\s*)|(?:\s*virtual\s*)|(?:\s*volatile\s*)|(?:\s*friend\s*)){0,5}\s*\w+(?::{2}\w+)*(?:\s*?[&*]\s*?)*)??\s*([\w~]+)\s*(\(.*\))\s*?(\sconst)?\s*;/gm