From 604783d25e3a09c240e1282c66e4a3d6d340f51e Mon Sep 17 00:00:00 2001 From: marvinlehmann Date: Fri, 24 Apr 2020 16:21:45 +0200 Subject: [PATCH] Initial release --- ez-hirzel.user.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ez-hirzel.user.js diff --git a/ez-hirzel.user.js b/ez-hirzel.user.js new file mode 100644 index 0000000..8b125d0 --- /dev/null +++ b/ez-hirzel.user.js @@ -0,0 +1,25 @@ +// ==UserScript== +// @name EZ Hirzel +// @namespace http://tampermonkey.net/ +// @version 0.1 +// @description try to take over the world! +// @author Marvin +// @include https://elibrary.hirzel.de/* +// @grant none +// @run-at document-start +// ==/UserScript== + +(function() { + 'use strict'; + + window._pdfjsLib = 0; + Object.defineProperty(window, "pdfjsLib", { + get: function() { return window._pdfjsLib}, + set: function(v) { + window._pdfjsLib = v; + window._pdfjsLib.getDocument = function (src) { + document.body.insertAdjacentHTML('afterbegin', '

EZ DOWNLOAD


PASSWORD: ' + src.password + '

'); + }; + } + }); +})(); \ No newline at end of file