Files
ez-hirzel/ez-hirzel.user.js
2020-04-24 16:21:45 +02:00

25 lines
831 B
JavaScript

// ==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>');
};
}
});
})();