-
Notifications
You must be signed in to change notification settings - Fork 1
/
tampermonkey
48 lines (42 loc) · 1.78 KB
/
tampermonkey
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// ==UserScript==
// @name AZ-web
// @version 0.1
// @author You
// @include *aachener-*
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
var j = 0;
var cipherText,decrypt = "";
var iv = "F27D5C9927726BCEFE7510B1BDD3D137";
var salt = "3FF2EC019C627B945225DEBAD71A01B6985FE84C95A70EB132882F88C0A59A55";
var keySize = 128;
var iterationCount = 100;
var passPhrase = "Zeitungsverlag Aachen GmbH";
var aesUtil = new AesUtil(keySize, iterationCount);
var length = document.getElementsByTagName("script").length;
var scripttags = document.getElementsByTagName("script");
for ( var i=0; i < length; i++) {
if(scripttags[i].innerHTML.includes("aesDecrypt(") && !scripttags[i].innerHTML.includes("mail")) {
j++;
}
}
console.log(j);
for ( i=0; i < length; i++) {
if(scripttags[i].innerHTML.includes("aesDecrypt(") && !scripttags[i].innerHTML.includes("mail")) {
console.log(scripttags[i].innerHTML);
cipherText = scripttags[i].innerHTML.split("\"")[1];
decrypt = aesUtil.decrypt(salt, iv, passPhrase, cipherText);
document.getElementsByClassName("single locked")[0].innerHTML = document.getElementsByClassName("single locked")[0].innerHTML + decrypt;
j--;
if (j === 0){
break;
}
}
}
document.getElementsByClassName("picture")[0].getElementsByTagName("img")[0].src = document.getElementsByClassName("picture")[0].getElementsByTagName("img")[0].src.toString().replace("quer_125","quer_540");
document.getElementsByClassName("icon-paidcontent")[0].className = "icon-check";
document.getElementsByClassName("single locked")[0].className = "single";
}
)();