Skip to content

Commit

Permalink
First commit. Adding resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeveaux committed Jun 8, 2010
0 parents commit 0b55d37
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 0 deletions.
30 changes: 30 additions & 0 deletions DeliciousGlobalsPage.html
@@ -0,0 +1,30 @@
<html>


<script>
function performCommand(event) {

if (event.command === "DeliciousToolbarItem") {

var currentTabUrl = safari.application.activeBrowserWindow.activeTab.url;
var currentTabTitle = safari.application.activeBrowserWindow.activeTab.title;

var deliciousWindow = safari.application.openBrowserWindow();

deliciousWindow.activeTab.url = 'http://delicious.com/save?url='+currentTabUrl+'&title='+currentTabTitle;

}
}

function validateCommand(event) {
if (event.command === "DeliciousToolbarItem") {
// Disable the button if there is no URL loaded in the tab.
event.target.disabled = !event.target.browserWindow.activeTab.url;
}
}

safari.application.addEventListener("command", performCommand, false);
safari.application.addEventListener("validate", validateCommand, false);
</script>

</html>
59 changes: 59 additions & 0 deletions Info.plist
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Author</key>
<string>Jeveaux</string>
<key>CFBundleDisplayName</key>
<string>delicious</string>
<key>CFBundleIdentifier</key>
<string>br.com.giran.safari</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>Chrome</key>
<dict>
<key>Global Page</key>
<string>DeliciousGlobalsPage.html</string>
<key>Toolbar Items</key>
<array>
<dict>
<key>Command</key>
<string>DeliciousToolbarItem</string>
<key>Identifier</key>
<string>DeliciousToolbarItem</string>
<key>Image</key>
<string>delicious_alpha.png</string>
<key>Label</key>
<string>Delicious</string>
<key>Palette Label</key>
<string></string>
<key>Tool Tip</key>
<string>Manage your delicious bookmarks</string>
</dict>
</array>
</dict>
<key>Content</key>
<dict>
<key>Scripts</key>
<dict/>
</dict>
<key>Description</key>
<string>Save your bookmarks</string>
<key>ExtensionInfoDictionaryVersion</key>
<string>1.0</string>
<key>Permissions</key>
<dict>
<key>Website Access</key>
<dict>
<key>Level</key>
<string>None</string>
</dict>
</dict>
<key>Website</key>
<string>http://www.jeveaux.com</string>
</dict>
</plist>
5 changes: 5 additions & 0 deletions Settings.plist
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array/>
</plist>
Binary file added delicious.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added delicious_alpha.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0b55d37

Please sign in to comment.