-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent.js
35 lines (33 loc) · 1.15 KB
/
content.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
//////////////////////////////////////////////
// //
// Title : Content JS //
// //
// Started by : Flux //
// //
// Time : 18:55 hrs //
// //
// Editor : Sublime Text //
// //
// Version : 0.1 //
// //
// Due to Quora Bullshit policy //
// //
//////////////////////////////////////////////
//forwards the request to the model for cookie processing
function eat_all_cookies(argument) {
chrome.runtime.sendMessage({type: "cookie"}, function(response) {
if (response.message) {
console.log("From the backgroundjs");
// location.reload();
};
});
}
//recieves the request when user goes to quora.com
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
if (request.type == "delete_cookies") {
eat_all_cookies();
sendResponse({message : "all_done"});
return true;
}
});