Last active
April 27, 2022 02:22
-
-
Save GarnetSunset/800eaf3751de53b28676ba58392e6b56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @namespace https://github.com/garnetsunset | |
// @name Websense Archiver | |
// @description If a page is blocked, archive it for us. | |
// @copyright 2019, GarnetSunset (https://github.com/garnetsunset) | |
// @license MIT | |
// @version 1.0.1 | |
// @author GarnetSunset | |
// @grant none | |
// @include https://* | |
// @include http://* | |
// @exclude http://web.archive.org/* | |
// @exclude http://archive.is/* | |
// @exclude https://disqusservice.com/* | |
// @updateURL https://gist.githubusercontent.com/GarnetSunset/800eaf3751de53b28676ba58392e6b56/raw/bypass_websense_via_archiveis.js | |
// @downloadURL https://gist.githubusercontent.com/GarnetSunset/800eaf3751de53b28676ba58392e6b56/raw/bypass_websense_via_archiveis.js | |
// ==/UserScript== | |
var title = document.title; | |
var loc = window.location.href; | |
if (title == "Access Blocked"){ | |
window.open("http://web.archive.org/save/"+ loc, "_blank"); | |
window.open("http://archive.is/?run=1&url="+ loc, "_blank"); | |
} | |
//http://web.archive.org/save/URL | |
//http://archive.is/?run=1&url= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment