Skip to content

Instantly share code, notes, and snippets.

View aniket91's full-sized avatar

Aniket Thakur aniket91

View GitHub Profile
@aniket91
aniket91 / PageRedirectScript.js
Last active October 3, 2016 14:24
GM script to redirect a URL to new URL
// ==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 June 12, 2016 05:25
Greasemonkey script to blackout Game of thrones spoiler posts on facebook
// ==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.