Initial release
This commit is contained in:
25
ez-hirzel.user.js
Normal file
25
ez-hirzel.user.js
Normal 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>');
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})();
|
||||||
Reference in New Issue
Block a user