del.icio.us automatic 'do not share'

Subscribe to del.icio.us automatic 'do not share' 14 posts, 6 voices

fluj User

doesn't sound too hard, but sounds very convenient :-)

 
Gregory Scriptwright

Original script:

// ==UserScript==
// @name           del.icio.us auto do not share
// @namespace      http://whatever
// @description    del.icio.us auto do not share
// @include        http://del.icio.us/*?url=*
// ==/UserScript==

var chkbox = window.document.getElementById('private');
chkbox.checked = true;

 
Gregory Scriptwright

I rigged that up to work with the del.icio.us plugin for firefox, so when I click the 'tag this' button, the popup window already has 'do not share' checked. Not sure if that's the way you do it though :)

 
fluj User

thanks.

i installed the script available in the script section, but could not make it work. is it intended to work with the firefox add-on? thanks

 
Gregory Scriptwright

Thanks for the feedback,
for reference, I'm using firefox 2.0.0.3, with greasemonkey plugin 0.6.8.20070314.0 and del.icio.us plugin 1.2 . I added a link to this thread from the script page so people can leave feedback...

For me, the "tag this" popup points to an address that looks like: http://del.icio.us/USERNAME?url=URL&title=TITLE... so that's why the include line looks like it does, if yours looks different could you post it and I'll see how to make it work if that's the problem :)

I changed the script to not use any variables now, in case there might be a conflict with other scripts or something.

Also since I first submitted the script I added one line to it to put focus on the "tags" element when the page loads, since I often find myself clicking the tags box to type in tags. It is now been updated to this:

// ==UserScript==
// @name           del.icio.us auto do not share
// @namespace      http://del
// @description    del.icio.us auto do not share
// @include        http://del.icio.us/*?url=*
// ==/UserScript==

window.document.getElementById('private').checked = true;
window.document.getElementById('tags').focus();

I did that since most times the title/description is fine, and don't put in notes, just tags. You can replace 'tags' with 'notes' if you want to focus the notes section to put type something in before you save it.

 
fluj User

hi gregory

thanks for the update! it actually works well ... with del.icio.us 1.2. i was actually using a more recent version (the latest, 1.5.29, this was why it didn't work by me. installing the older version made it work.

but it is maybe not the cleanest way :-) do you think upgrading the script to del.icio.us 1.5.29 is still possible?

thanks again, i'll stick to your version so far!

 
LouCypher Scriptwright

Greasemonkey user scripts won't work on extension dialogs.
You need userChrome.js scripts for that.

 
Gregory Scriptwright

You can make it work for the new versions if you want... but not by using a greasemonkey script. I had to manually change a source file for the 1.5.29 version. The path to the file looks like this in WinXP... (I Don't know where it would be stored on other operating systems)

C:\Documents and Settings\(username)\Application Data\Mozilla\Firefox\Profiles\(whatever).default\extensions\
{whatever}\chrome\deliciousBookmarks.jar\content\yAddBookMark.xul

(note that the .jar file is really just a .zip file, and that you can't change and save anything inside the file while firefox is running)

In yAddBookMark.xul, find:

<checkbox id="cb_noShare" label="&addybookmarks.sharing.label;"

and add in checked="true" like this:

<checkbox id="cb_noShare" checked="true" label="&addybookmarks.sharing.label;"

 
fluj User

awesome!!
exactly what i wanted!! thank you soooo much :-)

 
bciuppa User

Hey There,
This sort of thing should have been documented somewhere. And for all I know it was. But I too opened the code ... when I read through it I saw that the checkbox was being set from a value in firefox's configuration. Go to about:config and create the following integer and set it's value to 1.

extensions.ybookmarks@yahoo.sharemode

Now when a new version of the extention is downloaded ... you don't have to re-hack the code ...

 
romy User

I cant get it work, can you please help me too.. The problem is I cant find the deliciousBookmarks.jar in the chrome folder. I also try to show hidden files, but it dont help. Thanks...

 
Gregory Scriptwright

The deliciousBookmarks.jar is from the newer versions of the extension, and for me on WinXP was in
C:\Documents and Settings\(username)\Application Data\Mozilla\Firefox\Profiles\(whatever).default\extensions\
{whatever}\chrome\deliciousBookmarks.jar\content\yAddBookMark.xul

If you are using the old versions that show that HTML box (~v1.2) instead of a proper modal window (~v1.5) you can use the greasemonkey script further up the thread (5th comment). But if it is the v1.5 style you need to find make the changes shown above your comment by bcuippa.

I'm guessing that deliciousBookmarks.jar is from the newer versions only (I uninstalled the old version, so I can't check), so if you can't find that using File Search you probably have the 1.2 version???

 
romy User

I have the new version. 0.7 im using WinXP Pro i try to search for the deliciousBookmarks.jar but cant find it.

 
l3utterfish User
FirefoxWindows

is http://userscripts.org/scripts/show/30928
working?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel