Skip to content

Instantly share code, notes, and snippets.

@GarnetSunset
Last active April 27, 2022 02:22
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GarnetSunset/800eaf3751de53b28676ba58392e6b56 to your computer and use it in GitHub Desktop.
Save GarnetSunset/800eaf3751de53b28676ba58392e6b56 to your computer and use it in GitHub Desktop.
// ==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