-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontentscript.js
More file actions
38 lines (36 loc) · 1.19 KB
/
Copy pathcontentscript.js
File metadata and controls
38 lines (36 loc) · 1.19 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
document.addEventListener("keydown",onKeyPress);
function RandomWordComplete(data) {
window.open("http://lmgtfy.com/?=" + data.word + "=1", "_blank", height=600, width=600);
alert("You're an awesome internet browser!!");
}
var linkArray = new Array(6);
var i =2;
function getWord(){
var requestStr = "http://randomword.setgetgo.com/get.php";
linkArray[0]= "http://www.hackru.org/";
linkArray[1]= "http://www.neopets.com/"
$.ajax({
type: "GET",
url: requestStr,
success: function(data){
if (i<6){
getWord();
}
linkArray[i] = "http://www.google.com/search?hl=en&q="+data+"&btnI=I%27m+Feeling+Lucky";
i++;
}
});
}
getWord();
function onKeyPress(event){
var requestStr = "http://randomword.setgetgo.com/get.php";
console.log()
if (event.keyCode == 71 && event.altKey == true){
console.log(linkArray);
window.open('','_self','');
window.close();
for (var i = 0; i<linkArray.length; i++){
window.open(linkArray[i],"_blank");
}
}
}