-
Notifications
You must be signed in to change notification settings - Fork 2
/
eventPage.js
252 lines (250 loc) · 12.6 KB
/
eventPage.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
var currentDate = new Date();
var dd = currentDate.getDate();
var mm = currentDate.getMonth()+1;
var yy = currentDate.getFullYear();
if(dd<10) {dd = '0'+dd}
if(mm<10) {mm = '0'+mm}
currentDate = (mm)+ "/"+ dd + "/" + yy;
chrome.runtime.onInstalled.addListener(function(details){
var defaultSettings = {
censorCharacter: "****",
filterMethod: "0",
filterToggle: false,
matchMethod: "0",
multipleMeaning: "0",
password: "null",
warningDomains: [
"https://www.facebook.com",
"https://www.twitter.com",
"https://www.9gag.com",
"https://www.tumblr.com",
"https://www.youtube.com",
],
websites: [
{"count": "69","site": "https://www.google.com.ph"},
{"count": "32","site": "https://notifications.google.com"},
{"count": "38","site": "https://www.youtube.com"},
{"count": "64","site": "https://www.twitter.com"},
{"count": "47","site": "https://www.facebook.com"}
],
defaultWords: [
{"count": 0,"word": "fuck","double":false},
{"count": 0,"word": "fuckable","double":false},
{"count": 0,"word": "fucked","double":false},
{"count": 0,"word": "fucker","double":false},
{"count": 0,"word": "fuckin","double":false},
{"count": 0,"word": "fucks","double":false},
{"count": 0,"word": "fvck","double":false},
{"count": 0,"word": "shit","double":false},
{"count": 0,"word": "asses","double":true},
{"count": 0,"word": "asshole","double":false},
{"count": 0,"word": "assshit","double":false},
{"count": 0,"word": "ass-hat","double":false},
{"count": 0,"word": "asssucker","double":false},
{"count": 0,"word": "assbag","double":false},
{"count": 0,"word": "assbite","double":false},
{"count": 0,"word": "asscock","double":false},
{"count": 0,"word": "assfuck","double":false},
{"count": 0,"word": "asshead","double":false},
{"count": 0,"word": "asslick","double":false},
{"count": 0,"word": "asslicker","double":false},
{"count": 0,"word": "assmonkey","double":false},
{"count": 0,"word": "assmunch","double":false},
{"count": 0,"word": "anal","double":false},
{"count": 0,"word": "bastard","double":false},
{"count": 0,"word": "blowjob","double":false},
{"count": 0,"word": "bampot","double":false},
{"count": 0,"word": "bitchass","double":false},
{"count": 0,"word": "bitchy","double":false},
{"count": 0,"word": "bullshit","double":false},
{"count": 0,"word": "bitch","double":true},
{"count": 0,"word": "cunt","double":false},
{"count": 0,"word": "creampie","double":false},
{"count": 0,"word": "cum","double":false},
{"count": 0,"word": "clitface","double":false},
{"count": 0,"word": "clusterfuck","double":false},
{"count": 0,"word": "cockass","double":false},
{"count": 0,"word": "cockbite","double":false},
{"count": 0,"word": "cockburger","double":false},
{"count": 0,"word": "cockface","double":false},
{"count": 0,"word": "cockhead","double":false},
{"count": 0,"word": "cockmonkey","double":false},
{"count": 0,"word": "cocknose","double":false},
{"count": 0,"word": "cocknugget","double":false},
{"count": 0,"word": "cockshit","double":false},
{"count": 0,"word": "cockwaffle","double":false},
{"count": 0,"word": "cumbubble","double":false},
{"count": 0,"word": "cumslut","double":false},
{"count": 0,"word": "cumtart","double":false},
{"count": 0,"word": "cuntass","double":false},
{"count": 0,"word": "cumdumpster","double":false},
{"count": 0,"word": "cuntface","double":false},
{"count": 0,"word": "cuntrag","double":false},
{"count": 0,"word": "cuntslut","double":false},
{"count": 0,"word": "cock","double":true},
{"count": 0,"word": "damn","double":false},
{"count": 0,"word": "douche","double":false},
{"count": 0,"word": "douchebag","double":false},
{"count": 0,"word": "deepthroat","double":false},
{"count": 0,"word": "dildo","double":false},
{"count": 0,"word": "dildos","double":false},
{"count": 0,"word": "dickbag","double":false},
{"count": 0,"word": "dickface","double":false},
{"count": 0,"word": "dickfuck","double":false},
{"count": 0,"word": "dickfucker","double":false},
{"count": 0,"word": "dickhead","double":false},
{"count": 0,"word": "dickjuice","double":false},
{"count": 0,"word": "dickmilk","double":false},
{"count": 0,"word": "dicksucker","double":false},
{"count": 0,"word": "dickwad","double":false},
{"count": 0,"word": "dickweasel","double":false},
{"count": 0,"word": "dickweed","double":false},
{"count": 0,"word": "dickwod","double":false},
{"count": 0,"word": "dipshit","double":false},
{"count": 0,"word": "doochbag","double":false},
{"count": 0,"word": "douchefag","double":false},
{"count": 0,"word": "dumass","double":false},
{"count": 0,"word": "dumb ass","double":false},
{"count": 0,"word": "dumbass","double":false},
{"count": 0,"word": "dumbfuck","double":false},
{"count": 0,"word": "dumbshit","double":false},
{"count": 0,"word": "dumshit","double":false},
{"count": 0,"word": "dick","double":true},
{"count": 0,"word": "fag","double":false},
{"count": 0,"word": "fagfucker","double":false},
{"count": 0,"word": "fuckers","double":false},
{"count": 0,"word": "fucken","double":false},
{"count": 0,"word": "fucking","double":false},
{"count": 0,"word": "fuckass","double":false},
{"count": 0,"word": "handjob","double":false},
{"count": 0,"word": "holyshit","double":false},
{"count": 0,"word": "jizz","double":false},
{"count": 0,"word": "motherfucker","double":false},
{"count": 0,"word": "motherfucka","double":false},
{"count": 0,"word": "orgy","double":false},
{"count": 0,"word": "piss","double":false},
{"count": 0,"word": "pissed","double":false},
{"count": 0,"word": "pissing","double":false},
{"count": 0,"word": "shite","double":false},
{"count": 0,"word": "thefuck","double":false},
{"count": 0,"word": "whore","double":false}
],
substituteWords: [
{"substitute": "[butt]","word": "anal","double":false},
{"substitute": "[butt-hat]","word": "ass-hat","double":false},
{"substitute": "[buttbag]","word": "assbag","double":false},
{"substitute": "[buttbite]","word": "assbite","double":false},
{"substitute": "[buttcrook]","word": "asscock","double":false},
{"substitute": "[butts]","word": "asses","double":false},
{"substitute": "[buttmate]","word": "assfuck","double":false},
{"substitute": "[butthead]","word": "asshead","double":false},
{"substitute": "[butthole]","word": "asshole","double":false},
{"substitute": "[buttlick]","word": "asslick","double":false},
{"substitute": "[buttlicker]","word": "asslicker","double":false},
{"substitute": "[buttmonkey]","word": "assmonkey","double":false},
{"substitute": "[butmunch]","word": "assmunch","double":false},
{"substitute": "[buttard]","word": "assshit","double":false},
{"substitute": "[buttsipper]","word": "asssucker","double":false},
{"substitute": "[bam]","word": "bampot","double":false},
{"substitute": "[no father]","word": "bastard","double":false},
{"substitute": "[dog]","word": "bitch","double":true},
{"substitute": "[mean]","word": "bitchass","double":false},
{"substitute": "[mean]","word": "bitchy","double":false},
{"substitute": "[job]","word": "blowjob","double":false},
{"substitute": "[crap]","word": "bullshit","double":false},
{"substitute": "[face]","word": "clitface","double":false},
{"substitute": "[mess]","word": "clusterfuck","double":false},
{"substitute": "[rooster]","word": "cock","double":true},
{"substitute": "[nonsense]","word": "cockass","double":false},
{"substitute": "[rooster]","word": "cockbite","double":false},
{"substitute": "[donkey]","word": "cockburger","double":false},
{"substitute": "[cock]","word": "cockface","double":false},
{"substitute": "[vex]","word": "cockhead","double":false},
{"substitute": "[monkey]","word": "cockmonkey","double":false},
{"substitute": "[nose]","word": "cocknose","double":false},
{"substitute": "[nugget]","word": "cocknugget","double":false},
{"substitute": "[cock]","word": "cockshit","double":false},
{"substitute": "[waffle]","word": "cockwaffle","double":false},
{"substitute": "[food]","word": "creampie","double":false},
{"substitute": "[rum]","word": "cum","double":false},
{"substitute": "[bubble]","word": "cumbubble","double":false},
{"substitute": "[choosy]","word": "cumdumpster","double":false},
{"substitute": "[tart]","word": "cumslut","double":false},
{"substitute": "[tart]","word": "cumtart","double":false},
{"substitute": "[insult]","word": "cunt","double":false},
{"substitute": "[irritating]","word": "cuntass","double":false},
{"substitute": "[bunny]","word": "cuntface","double":false},
{"substitute": "[napkin]","word": "cuntrag","double":false},
{"substitute": "[annoying]","word": "cuntslut","double":false},
{"substitute": "[duck]","word": "damn","double":false},
{"substitute": "[throat]","word": "deepthroat","double":false},
{"substitute": "[bob]","word": "dick","double":true},
{"substitute": "[bag]","word": "dickbag","double":false},
{"substitute": "[face]","word": "dickface","double":false},
{"substitute": "[insult]","word": "dickfuck","double":false},
{"substitute": "[anger]","word": "dickfucker","double":false},
{"substitute": "[head]","word": "dickhead","double":false},
{"substitute": "[juice]","word": "dickjuice","double":false},
{"substitute": "[milk]","word": "dickmilk","double":false},
{"substitute": "[gay]","word": "dicksucker","double":false},
{"substitute": "[mean]","word": "dickwad","double":false},
{"substitute": "[rude]","word": "dickweasel","double":false},
{"substitute": "[weed]","word": "dickweed","double":false},
{"substitute": "[annoying]","word": "dickwod","double":false},
{"substitute": "[toy]","word": "dildo","double":false},
{"substitute": "[toys]","word": "dildos","double":false},
{"substitute": "[loser]","word": "dipshit","double":false},
{"substitute": "[rude]","word": "doochbag","double":false},
{"substitute": "[duck]","word": "douche","double":false},
{"substitute": "[throat]","word": "douchebag","double":false},
{"substitute": "[frat]","word": "douchefag","double":false},
{"substitute": "[loser]","word": "dumass","double":false},
{"substitute": "[ass]","word": "dumb ass","double":false},
{"substitute": "[ass]","word": "dumbass","double":false},
{"substitute": "[bob]","word": "dumbfuck","double":false},
{"substitute": "[bob]","word": "dumbshit","double":false},
{"substitute": "[bob]","word": "dumshit","double":false},
{"substitute": "[duck]","word": "expression","double":false},
{"substitute": "[happy]","word": "fag","double":false},
{"substitute": "[happy]","word": "fagfucker","double":false},
{"substitute": "[love]","word": "fuck","double":false},
{"substitute": "[loveable]","word": "fuckable","double":false},
{"substitute": "[loveass]","word": "fuckass","double":false},
{"substitute": "[loved]","word": "fucked","double":false},
{"substitute": "[loven]","word": "fucken","double":false},
{"substitute": "[lover]","word": "fucker","double":false},
{"substitute": "[lovers]","word": "fuckers","double":false},
{"substitute": "[lovin]","word": "fuckin","double":false},
{"substitute": "[loving]","word": "fucking","double":false},
{"substitute": "[loves]","word": "fucks","double":false},
{"substitute": "[lve]","word": "fvck","double":false},
{"substitute": "[hand]","word": "handjob","double":false},
{"substitute": "[holy]","word": "holyshit","double":false},
{"substitute": "[fluid]","word": "jizz","double":false},
{"substitute": "[mother]","word": "motherfucker","double":false},
{"substitute": "[group]","word": "orgy","double":false},
{"substitute": "[urine]","word": "piss","double":false},
{"substitute": "[mad]","word": "pissed","double":false},
{"substitute": "[urinating]","word": "pissing","double":false},
{"substitute": "[turd]","word": "shit","double":false},
{"substitute": "[crap]","word": "shite","double":false},
{"substitute": "[crap]","word": "thefuck","double":false},
{"substitute": "[pathetic]","word": "whore","double":false}
],
textHistory: [],
wordDates:[{date: currentDate, wordHist: []}]
}
if(details.reason == "install"){
chrome.storage.local.set(defaultSettings, function() {
alert("Extension successfully installed");
});
}
});
// chrome.webRequest.onCompleted.addListener(function(details) {
// var url = document.createElement('a');
// url.href = details.url;
// if (url.search && url.search.indexOf('ajaxpipe=1') !== -1) {
// console.log('New page via AJAX.');
// chrome.tabs.executeScript({'file' : 'content.js'});
// }
// }, {urls : ["*://*.facebook.com/*"]});