The service is dubbed Scripted Re-Mark, since you use a script to "re-mark" your bookmarks. It grew out of my earlier experiments with automatic tagging and frustrations with migrating a blog.
(There's a new release for Scripted Re-Mark that features zippier updates and functions-as-parameters.)
To use the service, you visit the page, play around with some search/replace rules and then copy/paste a code snippet into another window, opened up to your del.icio.us account. The code snippet zips through the bookmarks, making changes and saving the result.
You can search/replace on the Title, URL, Notes and Tags of your bookmarks, using as many rules as you like. (And, yes, you can use full regular expressions!) You can also set the sharing (public/private) properties. The service deals with the del.icio.us "rate limiter" for you, ensuring that you don't get locked out of your account for thrashing their servers.
Some possible uses:
- Site Migration: Change the domain name in the URLs of a bunch of bookmarks.
- Spelling Correction: As a favour, why not fix all the different flavours of spelling, without too much labour?
- Tag Migration: Delete, merge and rename tags in one hit. Or, add a common tag across a subset of your bookmarks to help with grouping.
- Share your Imports: By default, imported bookmarks are private; set them all free with a mass "tag and release program".
If you've got more ideas, please share them in the comments, including any regular expressions you come up with.
I've tested it under FireFox and Internet Explorer (I wept tears getting it to work in IE ...) but not Safari or Opera. If someone could let me know how it travels, that'd be great. Still, this is "beta" (not like Google - I mean beta) so please backup your bookmarks before committing anything.
The code is released under a Creative Common licence so feel free to "extend and embrace". Future ideas include allowing generic functions in the replace string, rolling in the auto-tagger for suggestions, deletion and, well, you tell me!
Filed in: blogtech, tags, bookmarklets, bookmarks, del.icio.us
Then you can go to the Harbor...
I haven't given a complete test run because I don't actually need the use of it now. But I could've definitely used this several months ago (This would have saved me a TON of time)...and see where I might in the future make use of it.
Looks great. Excellent job.
I hope people find it useful for eliminating the boring rote stuff in looking after bookmarks (displacement). I also hope people can think of innovative new uses for it too (disruption)!
please email me traemccombs {isat} gmail {dot} com if you know the answer of how to get all of your bookmarks published in one swoop.
tx.
Trae
Sure - just set the "Bookmark Sharing" option to "Set Public".
Leave the search/replace rules blank and follow the instructions. Easy!
(And thanks for letting us know that we're on the Delicious Support radar.)
Alternatively, you can try an earlier single-purpose hack that is less sophisticated.
It would be nice if you could indicate a heirarchy, so that a tag could get
"promoted" to a more useful (=popular) variant. Eg "web-2.0" is detected and replaced with "web2.0". Combined with the auto-taggging suggestor and you'd have neat way to populate and tidy your tags.
Since JavaScript 1.5+ supports using functions as the replacement value, it should be fairly low-impact to make such extensions.
Love this idea! I've been doing a lot of thinking lately about "better ways to belong" in the blogosphere, & being able to "find & replace" on a more popular but synonymous tag would bring some consistency, as well as raising the profile of your content & opening it up to more people. Very cool...
Re: FireFox. Sorry to hear it didn't work for you. I developed and tested it in FF, only adding support for IE after the fact. So it's weird to have problems. Can you outline a little more what your issue was?
I also wasn't able to get this to work in FF (or IE7, for that matter). I was trying to batch edit to make all my private links public, and I followed the instructions you gave above. What happened was that the script seemed to be working, it ran down the page and looked at each bookmark, but when it got to bookmarks that were private, it simply didn't change them. Incidentally, I also tried your auto-tagger, and it didn't work for me either. Could it be because I'm using FF 2.0? Or is there some setting I should change somewhere? Thanks for a great script, even if it doesn't work for me! :)
atebark...yahoo
I'm presently traveling in Asia so I won't be in a position to make any changes until the New Year.
For those with the knowledge, please update the field changes as explained above. I'll leave a note here when I've fixed it up.
Please add future comments to the new post.
-Greg.
Please check out the new features on Scripted Re-Mark: tag stemming and "touched tags".
Can you please provide your account name so I can have a look. I'd be delighted to find out what went wrong for you and work out a rule to help correct the damage done (if you didn't back up first).
Speaking of not following the instructions, one possibility is that you didn't have "enable private sharing" turned on - did you check this?
-Greg.
Yeah, it would be a bit of work re-jigging it like that.
(I'll keep your unusual "use case" in mind for future releases.)
If you don't have a huge number of tags, you could try this:
* Set it to search in the notes field for your tag (say, "movies").
* Replace it with the empty string, so it will delete that tag from the notes.
* Set the "touched" tag to "movies".
* Execute.
* Rinse and repeat for each of your tags.
I know, painful, but it will work.
Cheers,
-Greg.
So simply removing ',' in tags.
All went fine in the test window. Copy and paste into bookmark window as well and it automatically runs through all the bookmarks.
But: nothing is changed. Commas are still attached to tags, the result doesn't look like in the test pane.
Tried in FF2.0.0.13 and IE7.
Please help!
;-)
Yeah, it's still working. I just used it to add and then remove commas from my tag lists.
Did you use a comma-removal script like this?
[Replace http with javascript in the link provided; Blogger security issue.]
If you're still stuck, please leave your del.icio.us username and I can have a look for you.
delay=2; ruleSet=[[3,/,/gi,""]]; sharing=2; touched=""; var s=document.createElement("script"); ...
My username is krissz. Almost all but some bookmarks feature usless commas instead of spaces separating bookmarks. Talk about 'automatic' submission. ;-)
I'm not sure what to say - it works for me! I know, not very helpful.
I modded a subset of my delicious to be like yours ie separated by a comma-space ie ", "
http://del.icio.us/thetan/touched
(I've left three entries here to confirm it's the same.)
Then I added the rule you specified by doing a direct copy-paste from your comment. The code fixed it (ie made all the tags on the current page separated by spaces).
I've done this four times now, just to confirm it wasn't a fluke.
Can you elaborate more on what sorts of errors or failures you're seeing?
Or maybe it's not throwing an error, but doing something different or unexpected? What did you have in mind should be happening?
-Greg.
Greg, I could give you my login credentials, if you want to try it out with my live bookmarks?
My bookmarks are anyway useless if I can't fix that problem.
If you want to give it a try, just drop me a mail to the address in my profile page and I send you the password.
However, the "tag tidy" button isn't really working for me.
Example:
I have a search and replace rule for "comment" to "comments". When the rule encounters the tag "comments", it will change it to "commentss", which is not what I want.
Is there any work around for this? Thank you!
Thanks for drawing to my attention the impact of the new delicious.com site design on the Scripted Re-Mark service.
I've looked into it and, yes, it's broken.
Can it be fixed? Yes, but sadly, probably not by me. I've taken a cursory look at the code, which has been sufficient for previous re-designs.
Now, it's beyond my ken what the hell is going on. I might have a look at it when I'm less burnt from thesis-writing, but in the mean time, I urge any JavaScript gurus out there to get in touch with me.
(The gist of the problem is that I don't know which function is called in when one clicks the "edit" link on the new page, so I can't induce the clickety-click via script ie editPost in the old version.)
So, sorry. The people at Delicious have been promising a batch editing tool for about two years, while pointing people to this tool as a stop-gap. Perhaps something will eventuate on that front?
In any case, if I fix it or someone else helps me, I will be sure to post back here to let you all know.
I've tested it under FF and IE and all functionality seems okay (toggle public/private, regular expressions, mass delete etc).
It's not been exhaustively tested, so please note any issues you're having below and I'll endeavour to follow it up.
I tried in FF, Safari on Mac, Then IE on Windows with always the same result.
Thanks
Rich
Thanks for taking the time to file a bug report. I'm not sure what to say other than the dreaded "but it works for me!"
I've tried a few delicious usernames and filter tags (and absence of filter tags) and it seems okay.
Did the default details work for you? Ie Joshua's (delicious' creator) bookmarks for food in NYC?
Perhaps there's some particular weird character or something in your feed. Would you mind disclosing the username (and any filter tags) you've been using?
User name is Hawkcode
Tag is ACTIVE
And default is returning 59 bookmarks.
Rich
I can confirm that it does work with username Hawkcode and no filter tags (2 results returned). When I check your delicious account I can only see two bookmarks, none of which have been tagged ACTIVE.
Maybe you have a bunch of other bookmarks, but if they are marked private you can't preview them with this tool.
But don't worry, you can still create rules and apply them as usual to private bookmarks.
To make sure the rules are having the desired effect, perhaps you could unprivate a few of them so the preview feature works. If not, just suck it and see! (Please remember to backup your bookmarks first.)
I imported a lot of spurl bookmarks that are set to private ehivh I want to share - but I also have private items I want to keep....
It's a good suggestion and one I'd like to implement, but the JSON feed the delicious API provides does not include date information.
If there's no tags unique to the spurl imports, unfortunately, you might have to filter by hand.
The best I can suggest is to use patterns (like matching "https://") to to automate some of the work.
I can't believe one can't do this kind of stuff with the del.icio.us Firefox extension.
Just wanted to make a note for anyone who's trying to troubleshoot: make sure you're LOGGED IN to the delicious account you're editing. This was my problem when it wasn't functioning for me at first, but it took me some time to figure that out. *facepalm*
Also keep in mind that you'll have to redo your tag bundling for any touched tags.