-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathAffAlarm.user.js
More file actions
26 lines (26 loc) · 946 Bytes
/
AffAlarm.user.js
File metadata and controls
26 lines (26 loc) · 946 Bytes
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
// ==UserScript==
// @name AffAlarm
// @namespace https://github.com/FunctionClub/AffAlarm/
// @version 0.2
// @description Fuck away! affman
// @author Kirito
// @match http://*/*
// @match https://*/*
// @exclude http://github.com/*
// @exclude https://github.com/*
// @exclude http://liyuans.com/*
// @exclude https://liyuans.com/*
// @exclude http://zhujiwiki.com/*
// @exclude https://zhujiwiki.com/*
// ==/UserScript==
(function() {
var links = document.getElementsByTagName("a"); //array
for (var i=0,imax=links.length; i<imax; i++){
links[i].href = links[i].href.replace(/aff=/g,"useless=");
}
var table = document.getElementsByTagName("table"); //array
for (var t=0,tmax=table.length; t<tmax; t++){
table[t].innerHTML= table[t].innerHTML.replace(/aff=/g,"useless=");
}
document.cookie = "WHMCSAffiliateID=null";
})();