Permalink
Browse files

Updated safari extension.

  • Loading branch information...
1 parent b09083c commit ae522179529f1fdaf3d332b75afca23e281062af @jeffrock jeffrock committed Jun 29, 2012
@@ -5,17 +5,17 @@
<key>Author</key>
<string>Mobelux</string>
<key>Builder Version</key>
- <string>7534.52.7</string>
+ <string>7534.57.2</string>
<key>CFBundleDisplayName</key>
<string>View in Carousel</string>
<key>CFBundleIdentifier</key>
<string>com.mobelux.carouselextension</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>1.1</string>
<key>CFBundleVersion</key>
- <string>1.0</string>
+ <string>1.1</string>
<key>Chrome</key>
<dict>
<key>Global Page</key>
@@ -50,6 +50,7 @@
<key>Allowed Domains</key>
<array>
<string>instagr.am</string>
+ <string>instagram.com</string>
</array>
<key>Include Secure Pages</key>
<true/>
@@ -12,18 +12,10 @@ function getMediaID(theMessageEvent) {
var newPhotoHTML = '<a href=\"x-mobelux-carousel://openmedia?mediaID=' + mediaID + '\" title=\"View photo in Carousel\">' + currentPhotoHTML + '</a>';
$('img.photo:first').replaceWith(newPhotoHTML);
- // Get username and link with the URL scheme
- var usernameElement = $('.username:first');
- var usernameText = usernameElement.text();
- var currentAuthorNameHTML = usernameElement.outerHTML();
- var newAuthorNameHTML = '<a href=\"x-mobelux-carousel://openuser?userID=' + authorID + '\" title=\"View ' + usernameText + ' in Carousel\">' + currentAuthorNameHTML + '</a>';
- usernameElement.replaceWith(newAuthorNameHTML);
- //alert(currentAuthorNameHTML);
-
// Link the author avatar with the URL scheme
- var currentAuthorHTML = $('img.profile-picture:first').outerHTML();
- var newAuthorHTML = '<a href=\"x-mobelux-carousel://openuser?userID=' + authorID + '\" title=\"View ' + usernameText + ' in Carousel\">' + currentAuthorHTML + '</a>';
- $('img.profile-picture:first').replaceWith(newAuthorHTML);
+ var currentUserNameImageHTML = $('.user-avatar:first').outerHTML();
+ var newUserNameImageHTML = '<a href=\"x-mobelux-carousel://openuser?userID=' + authorID + '\" title=\"View in Carousel\">' + currentUserNameImageHTML + '</a>';
+ $('.user-avatar').replaceWith(newUserNameImageHTML);
}
}
View
Binary file not shown.

0 comments on commit ae52217

Please sign in to comment.