Initial release

This commit is contained in:
2020-04-24 16:21:45 +02:00
parent e4de174565
commit 604783d25e

25
ez-hirzel.user.js Normal file
View File

@@ -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', '<div style="background: white;text-align: center"><br /><a href="' + src.url + '"><h1>EZ DOWNLOAD</h1><a/><br><h2>PASSWORD: ' + src.password + '<h2></div>');
};
}
});
})();