Script breaks
![]() ![]() |
Unfortunately, your previously working script now breaks. This is because a newer release of jQuery has come out that doesn't work with greasemonkey. So your jQuery @require now gets 1.4 and the script doesn't work. I tried changing it to http://code.jquery.com/jquery-1.3.min.js and it worked perfectly. You'll want to change the code until they fix whatever problem is going on. I'm not the only one getting it, as you can see here:
BTW, I like the script quite a bit. However, I think it would be much useful with these three options:
I like to show public bookmarks because in general, I don't set my bookmarks to public. So I need to see which ones are being shown. I was able to make some minor modifications to your code to make all three options work. I did have to comment out the dup date part to get it to work, though. Here's my changes to the code. Basically, everything from "function hidePublicBookmarks" downwards was deleted and replaced with this:
function hideBookmarks(private)
{
if (private) {
setDateToFirstPrivateBookmark();
$('ul.bookmarks li.post:not(.isPrivate)').hide();
$('ul.bookmarks li.post.isPrivate').show();
}
else {
removeDupDates();
$('ul.bookmarks li.post:not(.isPrivate)').show();
$('ul.bookmarks li.post.isPrivate').hide();
}
}
function showAllBookmarks()
{
removeDupDates();
getAllBookmarks().show();
}
// ***********************************************************************
// End of functions
// ***********************************************************************
// All those changes only make sense in a user's page
if (isUserPage()) {
// Insert filter menu
$("p#alt_message").after('<p id="filters" class="altMsg">Filters: </p>')
var filters = $("p#filters");
// Appy some style (copied from surrounding areas)
filters.css({'border-top':'1px solid #DDDDDD', 'height' : '1.4em', 'padding': '2px 0 0'})
// Add links
filters.append('<a href="#" id="showprivate">Show only private bookmarks</a>');
$("a#showprivate").click( function() { hideBookmarks(true); });
filters.append('<em>|</em>'); // Separator
// Add links
filters.append('<a href="#" id="showpublic">Show only public bookmarks</a>');
$("a#showpublic").click( function() { hideBookmarks(false); });
filters.append('<em>|</em>'); // Separator
filters.append('<a href="#" id="showall">Show all bookmarks</a>');
$("a#showall").click( function() { showAllBookmarks(); });
}
|
![]() ![]() |
Oh, wow. Thanks! I haven't been here for a while, I assumed that I'd be notified on new comments. I haven't used the script for some time either, but I will definitely take a look this weekend. Thank you very much for your contribution. |
![]() ![]() |
I have started by following your suggestion and updated the script so that it uses jquery 1.3 |
![]() ![]() |
I have uploaded a new, more generic, version of this script. It will allow you to hide private or public bookmarks. Date adjustment works in both cases, you might want want to try it. Thank you again for your suggestions. |
![]() ![]() |
Very cool! I also didn't realize I had gotten a message from you until today. I went into my settings here to make sure it will notify me next time. Of course, I also had the option up there marked for "Watching topic". I figured that would email me, too, but it didn't. Glad my suggestions helped. Thanks for working on the script. |



