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', '
'); + }; + } + }); +})(); \ No newline at end of file