forked from JonnyShuali/netdna-storage-click-bypass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetdna-storage.bypass.user.js
37 lines (34 loc) · 1.37 KB
/
netdna-storage.bypass.user.js
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
// ==UserScript==
// @name netdna-storage bypass clicker
// @namespace https://github.com/JonnyShuali/netdna-storage-click-bypass
// @description Bypass the clicking on netdna-storage.
// @updateURL https://github.com/JonnyShuali/netdna-storage-click-bypass/raw/master/netdna-storage.bypass.user.js
// @version 7
// @include http://www.netdna-storage.com/f/*
// @include http://www.netdna-storage.com/step/*
// @include http://netdna-storage.com/f/*
// @include http://netdna-storage.com/step/*
// @include https://www.netdna-storage.com/f/*
// @include https://www.netdna-storage.com/step/*
// @include https://netdna-storage.com/f/*
// @include https://netdna-storage.com/step/*
// @run-at document-start
// @grant GM.xmlHttpRequest
// ==/UserScript==
GM.xmlHttpRequest({
method: 'GET',
url: window.location.href,
onload: function(response) {
var parser = new DOMParser();
var doc = parser.parseFromString(response.responseText, 'text/html');
if (doc === null) {
return;
}
var g = doc.getElementsByClassName('plan-footer-item');
for (var i = 0; i < g.length; i++) {
if (g[i].getAttribute('href')) {
location.assign(g[i].getAttribute('href'));
}
}
}
});