Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Unblock Brave from archive.is
- // @namespace Violentmonkey Scripts
- // @match https://archive.is/*
- // @match https://archive.vn/*
- // @match https://archive.today/*
- // @grant none
- // @version 1.0
- // @author -
- // @description 8/11/2020, 6:55:34 PM
- // @run-at document-start
- // ==/UserScript==
- (function() {
- "use strict";
- const inject = function() {
- "use strict";
- function delete_cookie(name) {
- document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- }
- delete_cookie('unsupported-browser');
- Object.defineProperty(window.navigator, "brave", {
- get: function() {
- console.log("ok bro");
- return undefined;
- }
- });
- }
- const script = document.createElement("script");
- const target = document.head || document.documentElement;
- script.text = "(" + inject.toString() + ")();";
- target.appendChild(script);
- target.removeChild(script);
- })();
Add Comment
Please, Sign In to add comment