Permalink
Browse files

Signed-off-by: patlockley <patrick.lockley@googlemail.com>

  • Loading branch information...
1 parent 80d2321 commit 88655475011d342b18f6ef576d915f11b2dcf278 @pgogy committed May 6, 2012
Showing with 13 additions and 2 deletions.
  1. +12 −1 content_script.js
  2. +1 −1 manifest.json
  3. BIN oa.zip
View
13 content_script.js
@@ -249,18 +249,29 @@ switch(window.location.toString().split(".")[1]){
case "flickr": var loggedin = document.body.innerHTML.split('data-ywa-name="Account name">');
if(loggedin.length!=1){
+
logged_in_user = loggedin[1].split('</a>')[0];
var photo_by = document.body.innerHTML.split('<strong class="username">By <a href="/photos/');
- if(photo_by_user.length!=1){
+ if(photo_by.length!=1){
+
photo_by_user = photo_by[1].split('>')[1];
+
photo_by_author = photo_by_user.split('<');
+
if(logged_in_user==photo_by_author[0]){
triple_array = Array(window.location.toString(), "author", logged_in_user);
add_triple(triple_array)
triple_array = Array();
+ }else{
+
+ triple_array = Array(window.location.toString(), "author", photo_by_author[0]);
+ add_triple(triple_array)
+ triple_array = Array();
+
}
+
}
}
break;
View
2 manifest.json
@@ -16,5 +16,5 @@
"popup": "popup.html"
},
"permissions": [ "tabs", "http://*/*", "https://*/*" ],
- "version": "0.85"
+ "version": "0.86"
}
View
BIN oa.zip
Binary file not shown.

0 comments on commit 8865547

Please sign in to comment.