Created
April 17, 2011 18:32
-
-
Save mrclay/924328 to your computer and use it in GitHub Desktop.
Delicious Chrome extension: Add's a link to the user's bookmarks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/del-chrome.css b/del-chrome.css | |
index 9e058d1..c86db5f 100644 | |
--- a/del-chrome.css | |
+++ b/del-chrome.css | |
@@ -25,6 +25,7 @@ strong {font-weight:bold} | |
em {font-style:italic} | |
/* @end */ | |
+#signedInAs a {font-weight:900;font-size:1.1em;text-decoration:underline} | |
/* @group loading & messages */ | |
.loadingError {margin:1em; font-weight:bold} | |
diff --git a/del-chrome.js b/del-chrome.js | |
index 3a182a9..4c56eff 100644 | |
--- a/del-chrome.js | |
+++ b/del-chrome.js | |
@@ -3953,8 +3953,12 @@ Delicious.ChromeUI = function() { | |
// print signin name | |
var loginName = EM({}, [ | |
'signed in as ', | |
- STRONG({}, [results.login]) | |
- ]) | |
+ A({ | |
+ 'href': 'http://www.delicious.com/' + results.login, | |
+ 'title': 'Open your bookmarks', | |
+ 'onclick': 'window.open(this.href);' | |
+ }, [results.login]) | |
+ ]); | |
Dom.get('signedInAs').appendChild(loginName); | |
// take contents of return, and place on page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment