Skip to content

Instantly share code, notes, and snippets.

Avatar

Aniket Thakur aniket91

View GitHub Profile
@aniket91
aniket91 / PageRedirectScript.js
Last active Oct 3, 2016
GM script to redirect a URL to new URL
View PageRedirectScript.js
// ==UserScript==
// @name PageRedirectScript
// @include http://domain1/*
// @include https://domain1/*
// @run-at document-start
// @description Redirects page from one domain to another. Note if domain1 is down you need to add entry in /etc/hosts file as "ipOfDomain2 domain1 domain2". You can get the ipOfDomain2 as "ping domain2"
// @namespace http://opensourceforgeeks.blogspot.in/
// @version 1
// @grant none
// ==/UserScript==
@aniket91
aniket91 / got-spoiler-killer.js
Last active Jun 12, 2016
Greasemonkey script to blackout Game of thrones spoiler posts on facebook
View got-spoiler-killer.js
// ==UserScript==
// @name Spoiler Killer
// @include http://*.facebook.com/*
// @include https://*.facebook.com/*
// @require http://code.jquery.com/jquery-1.7.1.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant none
// @version 1
// @namespace http://opensourceforgeeks.blogspot.in/
// @description Blacken facebook posts possibly containing Game of Thrones spoilers.
You can’t perform that action at this time.