Skip to content

Instantly share code, notes, and snippets.

@bond-
Last active September 21, 2020 09:22
Show Gist options
  • Save bond-/a9db9c54b5bbe143684a18c9e67f8e2b to your computer and use it in GitHub Desktop.
Save bond-/a9db9c54b5bbe143684a18c9e67f8e2b to your computer and use it in GitHub Desktop.
Disable eval to get rid of annoying malware popups (Chrome PDF Viewer)
// ==UserScript==
// @name Disable eval to get rid of annoying malware popups
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http*://*/*
// @exclude http*://*.google.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.eval=function(){};
})();
@bond-
Copy link
Author

bond- commented Mar 21, 2017

Position: 1
Run At: document-start

@seebz
Copy link

seebz commented May 8, 2018

An option to disable the builtin Chrome PDF Viewer can be found in the settings, at chrome://settings/content/pdfDocuments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment