-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathwhoa.js
More file actions
42 lines (40 loc) · 1.3 KB
/
Copy pathwhoa.js
File metadata and controls
42 lines (40 loc) · 1.3 KB
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
// localStorage.removeItem('rickrolled');
var step = 0;
var messages = [
"Whoa.",
"Hey.",
"Stop that!",
"Nothing else happens.",
"Nothing else happens. I promise.",
"",
".",
"..",
"...",
"...see?",
"Oh, right.",
"Well, fine. Nothing else happens from now on.",
"At least, nothing you'll find enjoyable.",
"...",
"Stop it!",
"Aren't your fingers getting tired?",
"You'll have that konami code memorized in no time.",
"You probably already have it memorized, in fact.",
"Jeez! I mean, I appreciate you registering Export History and everything",
"Jeez! I mean, I appreciate you registering Export History and everything (really, I do)",
"Jeez! I mean, I appreciate you registering Export History and everything (really, I do), but this is just getting absurd.",
"You can already export your history in Excel!",
"What more do you want?",
"Alright, you know what?",
"You know what you get?",
"You get this:",
"You get this: (which you completely deserve)",
];
window.whoa = function(){
if(step < messages.length && !localStorage['rickrolled']){
var thankyou = document.getElementById("thankyou");
thankyou.innerHTML = messages[step++];
}else{
localStorage['rickrolled'] = true;
chrome.tabs.create({url: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"});
}
}