-
Notifications
You must be signed in to change notification settings - Fork 1
/
quora_notifications.txt
29 lines (22 loc) · 1.11 KB
/
quora_notifications.txt
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
a = $('div.pagedlist_item .notification_text').each(function(){ console.log($(this).find("a").each(function(key,value){if(key === 0 || key === 1){console.log(value);}}))});
a = $('div.pagedlist_item .notification_text').each(function(){ console.log($(this).find("a").each(function(key,value){if(key === 0 || key === 1){console.log(value.href);}}))});
a = $('div.pagedlist_item .notification_text').each(function(){ console.log($(this).find("a").each(function(key,value){if(key === 0 || key === 1){value.href.split("http://www.quora.com/");}}))});
notifications = {}
a = $('div.pagedlist_item .notification_text').each(function(){
a_tags = $(this).find("a");
console.log(a_tags[1]);
if($(a_tags[0]).attr('arg') === undefined){}
else{
topic = a_tags[1].href.split("http://www.quora.com/")[1].split("?")[0];
if( notifications[topic] === undefined ){
notifications[topic] = [];
}
note = a_tags[0].href.split("http://www.quora.com/")[1].split("?")[0];
notifications[topic].push(note);
}
});
================================
Things needed for extension :
1. Manifest file.
2. HTML file.
3. CSS/Javascript file.