navchandar / Open Current Tab via Google Cache

// ==UserScript==
// @name         Open Current Tab via Google Cache
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  Open Google Web Cache for dead links or bypass paywalls from browser right click context menu.
// @author       navchandar
// @include      *
// @grant        GM_openInTab
// @run-at       context-menu
// @homepage     https://navchandar.github.io/
// @homepage     https://github.com/navchandar/
// @homepageURL  https://navchandar.github.io/
// @license      MPL-2.0
// @updateURL    https://openuserjs.org/meta/navchandar/Open_Current_Tab_via_Google_Cache.meta.js
// @downloadURL  https://openuserjs.org/install/navchandar/Open_Current_Tab_via_Google_Cache.user.js
// @copyright    2021, navchandar (https://openuserjs.org/users/navchandar)
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAABiUlEQVRIx82Vr2sCYRjHPx7oaTCJwXRN2DAKlpk22Jqa3IJ5g634F1isDjbRsmEwGDdQBIOgoGgWo0nB4I9k8EfRhUPU90693cru0768z4d73ve95+A/PjKOI8jniy3EqNKkoUOTKjEspwVOPmnpljdo0OID5/kG7Cc40YREiDRZMmfIkiaEpBV4GbAxyADv4ca5gQBzw4I5AcC93dAoCUAhZaABtYkUCpAgChBhQg47jpObJ+LATo4JESixYUjNBEM2lODLcOd6fEPyT4Ik3LM0Xb7kAfyMhXhGn4Vm8YI+MyEb4wcPXSHO46WtEbTxkheyLh6QKQtxBhs1jaCGjYyQldVv400jkKmwYr7HigqyRvCu3sRnIS4g4SPI1R5BfEgUhJUvquBWOIcp8YPiLXGmwhncqYILRoJ5ffD6W9bCqhGXqsBFx9Qt6OBSBVaKpgRFrNuJkDIleN2NlEdTgqed4Frn6p5jwc1OoND7taCHsj8XwxSpGx4ldYqExalsPfpD08P6f/7EP03qO3FJtSxqAAAAAElFTkSuQmCC
// ==/UserScript==


(function() {
    'use strict';
    let gcache_url = "https://webcache.googleusercontent.com/search?q=cache:" + window.location.href;
    GM_openInTab(gcache_url);
})();