Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name GoGuardian youtuber fixer
// @namespace https://legusx.github.io
// @version 1
// @description Fixes the goguardian thing that half blocks videos.
// @author LegusX
// @match https://www.youtube.com/watch*
// @grant none
// ==/UserScript==
javascript:var urlraw=window.location.href.replace("http://blocked.com-default.ws/?oI=9914807577&type=chromium-m&url=","").split(""),url=urlraw.join("");url=url.split("%2F").join("/"),url=url.split("%3F").join("?"),document.write("<!DOCTYPE HTML><html><head><title>"+url+'</title></head><body><style>html,body{border:0;margin:0;padding:0;height:100%}iframe{border:0;margin:0;display:block}</style><iframe src="http://'+url+'" height=100% width=100%></iframe></body></html>');window.stop()
// ==UserScript==
// @name Unblock GoGuardian Blocked websites
// @namespace https://gist.github.com/LegusX/9f7724d01f67a1a3137e322be3057ec9/raw/3ee19e79ea68ed01b5c885277705ae54a273e5e5/unblocker.user.js
// @version 1.3
// @description Automatically unblocks any websites that are blocked by GoGuardian that start with http://
// @author LegusX
// @match http://blocked.com-default.ws/*
// @grant none
// @run-at document-start
// ==/UserScript==
@LegusX
LegusX / google-sheets-colour-preview.js
Created November 15, 2016 22:43 — forked from Pathoschild/google-sheets-color-preview.js
A Google Sheets script which adds colour preview to cells. When you edit a cell containing a valid CSS hexadecimal colour code (like #000 or #000000), the background colour will be changed to that colour and the font colour will be changed to the inverse colour for readability.
/*
This script is meant to be used with a Google Sheets spreadsheet. When you edit a cell containing a
valid CSS hexadecimal colour code (like #000 or #000000), the background colour will be changed to
that colour and the font colour will be changed to the inverse colour for readability.
To use this script in a Google Sheets spreadsheet:
1. go to Tools » Script Editor » Spreadsheet;
2. erase everything in the text editor;
3. change the title to "Set colour preview on edit";