diff --git a/README.md b/README.md new file mode 100644 index 0000000..bb90b35 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Add to delicious Chrome Extension + +A simple extension to save links into Delicious. + + + + +> The original code for this extension is from [del.icio.us/tools](https://del.icio.us/tools). \ No newline at end of file diff --git a/background.js b/background.js new file mode 100644 index 0000000..c1ae4c9 --- /dev/null +++ b/background.js @@ -0,0 +1,3 @@ +chrome.browserAction.onClicked.addListener(function(tab) { + chrome.tabs.executeScript(tab.id, {file: "bookmarklet.js"}) +}); \ No newline at end of file diff --git a/bookmarklet.js b/bookmarklet.js new file mode 100644 index 0000000..98cb01c --- /dev/null +++ b/bookmarklet.js @@ -0,0 +1 @@ +(function($){var bookmarklet=document.getElementById('DELI_save_link_slidedown');if(bookmarklet){$('#DELI_mist').show();$('#DELI_save_link_slidedown').slideDown('normal');return};if(!window.jQuery){node=document.createElement('SCRIPT');node.type='text/javascript';node.src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js';document.body.appendChild(node)}node=document.createElement('SCRIPT');node.type='text/javascript';node.src= window.location.protocol+'//del.icio.us/save/get_bookmarklet_save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'¬es='+encodeURIComponent(''+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text));document.body.appendChild(node)})(window.jQuery); \ No newline at end of file diff --git a/icon-128.png b/icon-128.png new file mode 100644 index 0000000..dd6c375 Binary files /dev/null and b/icon-128.png differ diff --git a/icon-16.png b/icon-16.png new file mode 100644 index 0000000..a80ff43 Binary files /dev/null and b/icon-16.png differ diff --git a/icon-48.png b/icon-48.png new file mode 100644 index 0000000..a3d63d1 Binary files /dev/null and b/icon-48.png differ diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..c41eba4 --- /dev/null +++ b/manifest.json @@ -0,0 +1,21 @@ +{ + "background": {"scripts": ["background.js"]}, + "browser_action": { + "default_icon": "icon-128.png", + "default_title": "Add to Delicious" + }, + "name": "Add to Delicious", + "description": "Add link to Delicious", + "homepage_url": "https://github.com/leocaseiro/AddToDelicious", + "icons": { + "16": "icon-16.png", + "48": "icon-48.png", + "128": "icon-128.png" }, + "permissions": [ + "tabs", + "http://*/*", + "https://*/*" + ], + "version": "1.0.0", + "manifest_version": 2 +} \ No newline at end of file