LibraryThing Hack Projects - sound off!
Aderi ao LibraryThing para poder publicar.
Este tópico está presentemente marcado como "adormecido"—a última mensagem tem mais de 90 dias. Pode acordar o tópico publicando uma resposta.
If someone wants to discuss a specific hack, it's probably best to do it in a separate thread. That way people can come here and just skip through the thread to see all the projects out there.
Sound good? Let the sounding off begin!
LibraryThing Employee Highlighter
This script will color both the header and the message body of posts made by LibraryThing employees. It will also add a border to the heading and a little padding to make everything look tidy with the new background color.
There are several script commands that can be accessed by right clicking on the monkey icon at the bottom of your browser and clicking User Script Commands....
(see the above link for configuration settings)
LibraryThing Expand More on Add Books
This script will both expand all the More buttons on the page and hide the More links. This is done purely through CSS styles, so hopefully there's little risk of breakage when the site is updated.
LibraryThing Ignore User (superseded by Tim's added functionality to Block User; UPDATED to completely remove offending users' posts)
LibraryThing Member Why? - Collapses the reasons for a member recommendation, like on the other two recommendation pages.
LibraryThing MyIcon - Gives you an icon on your talk posts.
LibraryThing Fix Images - Resizes too-large placeholder images and fixes bad URL for green checkmarks.
Adds a "search worldcat" link below the search box on the Add Books page. Clicking on it will open a new window that will go to the WorldCat website and show the results for the search text in Books.
Amazon bookmarklet (still testing) - fixes bug in current LT Amazon bookmarklet
Changes the main Talk link to always point to your posts and the Groups link to always point to your groups
For users who have screen height problems, this script moves the frequently used Editions link to the top of the book information screen. It also compacts some of the spacing so more links can fit vertically.
Attempts to find any covers on the page that have been loaded from Amazon and draws a distinctive (configurable) border around them. The script actually searches all IMG tags on the page, including those added later through dynamic methods. It may not be able to find all Amazon images if the page is coded in such a way that the image is returned from a SRC that does not contain http://images.amazon.com. For example, the image thumbnails on the Add books search results screen will not be highlighted.
The goal is to make it easy to quickly scan through books and see which covers need to be replaced with user-provided ones.
Important Note: This is one of my more intensive scripts. It scans every single LibraryThing page and also reacts when the site dynamically creates content after the page loads. As such, it might not be a bad idea to turn the script off when not actively seeking to eliminate Amazon covers.
Adds a button on the groups page next to the Search button, labeled Search Subject. Clicking on it will open a window with a Google search that will search for the exact text entered in the search box. This search will only search the titles of talk pages, thus effectively allowing a subject-only search. It will also specify that the group name must be in the title. This should limit the search to only that group. However, it can be fooled. For example, if you searched for "checkmark" in the group "Bug Collectors", it would find a post in "Recommended Site Improvements" with the title "Neat post in Bug Collectors about checkmarks."
This one could use some suggestions as to where to go with it.
I just realized how insanely awesome it was when I was using Google Books for adding CK info.
This one hides duplicate reviews (multiple reviews written by the same user).
On the Local event list, there are frequently many events that are recurring junk such as Border's Bean Friday. If you have several Borders in your metroplex, you'll get scads of events just for that one thing that you're likely never to be interested in. This is where LibraryThing Filter Local Events comes in. You can add filters to your Upcoming local events listing on the Local tab. Hidden events can be shown and will have a gray background. It also highlights any events you have marked as a favorite.
This style will remove the footer from the bottom of printed LibraryThing catalogs.
A very simple Stylish sheet/link for those folks who don't want to copy the css themselves ;)..
LibraryThing - Touchstones Link Fix
This should fix the touchstones so when you click on them you get a choice of highlighting the work (doesn't work) or clicking a link to go to to the work page.
* edited to fix the link, sorry about that. I blame my dog for distracting me while I was posting something ;).
For those trying to click that link, point your browser instead to:
The alphabetizing is done by throwing out any punctuation or whitespace characters before alphabetizing. It is also case-sensitive, but only if the two titles being compared are otherwise the same. Both of these changes are geared towards readability and grouping of similar titles together rather than strictly alphabetizing.
Adds Picture and Junk tabs to your main list of tabs. These tabs will take you to your picture gallery and junk drawer, respectively. If you are currently in either gallery, the tab will show as active. If you are viewing a picture, the Pictures tab will show as active, as there is no way to discriminate between viewing a picture from the main picture gallery and from the junk drawer.
With this script, the edit styles screen now has new options for each style. You can enter a new caption for the style buttons that normally show A, B, C, D, or E. You can also change the popup hint that will appear when you move your mouse over those fields. These settings are saved when you click the normal Save changes button on that screen.
Changes member name links on the work pages so that instead of the member's profile, they point to a search of that member's catalog for the work title. For example, all the member names under "Recently added by" or "All members who have the book" have their links changed. This can make it very easy to find the actual book(s) each member has listed that are rolled up into the work.
Note: It will not currently work on the links under "All members who have the book" if you have to click on the "( Show all members )" link to show them.
Sorts and puts each tag in the "Includes" section on a separate line for easy scanning. Also sorts the tags in the dropdown list for tag separation.
See also: http://www.librarything.com/topic/88350
Sometimes you need to a see a larger picture of the cover you've chosen for various reasons. This script adds the largest size you can request from LibraryThing (200 pixels wide) and displays it in on the top-right of the cover images page.
This script adds buttons for "Add to library" and "Add to wishlist" onto every Book Detail screen. When clicked, these buttons copy data from the book currently on screen and take you to the manual entry page. Data from the previous screen is pasted into the fields on the manual entry screen.
Discuss this script here.
You realize that last script wins you a Nobel Peace Prize, don't you?
So far, I'm only posting it here. Curious to see how many people actually read this thread.
I'm starting a new thread to discuss this particular script, just to avoid adding too many comments to this thread.
Here's the thread.
Seems more like a shot across the bow than a peace gesture! ;)
That's just splendid. Too late for me, but I'll download it anyway.
Seriously, though, it's all my fault. :D
Automatically adds a link to the message number and possibly username when clicking the Reply links in Talk. Also adds a Ref link under the More section. This allows additional references to be inserted into the message composition box.
Please direct all discussion of this script to here.
Bolds the dates on all unread messages in Talk
Adds Median, Mode(adj) and Members lines to the green Ratings box on work pages.
Always shows all collections on the left side of the Add Books screen.
I made this script because, when I've added multiple contributors to an anthology, I've grown tired of clicking the "add another author" link, moving my mouse slightly down, clicking it again, moving mouse slightly down again, etc., etc. This script adds a link (on the "Edit your book" page) that replicates the click of "add another author" 10 times.
Any unused fields are discarded when the page is saved (no blank authors get added).
As always, if you have any questions or find any problems, please let me know. Thanks.
This could be helpful. When I've done similar things I have sometimes wished for the following:
That the "add another author" or a similar link would set the role the same as the last one entered above the link. Hence, if it was set to "Contributor" then that would be repeated. It could be altered if necessary once added, of course.
Indeed. In fact, at first, I had hoped to make the "add another 10 authors" really be "add 10 contributors" but didn't (at least initially) see an easy way to do this. But sometimes I just need time for things to cook in the brain, so I'll take a look at it again and see if I can't make that happen. I realize it would especially be useful if the last one entered was a custom/"Other ..." role, though I'm currently cooking up a script to make one's own preferred custom roles appear in the dropdowns already.
Full title on work pages
Summary: On a work page, show the full, untruncated text of the work's title, instead of the default ellipsized behavior (for really long titles).
And a big thank you to brightcopy! This was my first ever GreaseMonkey script and he provided lots of helpful feedback and encouragement.
Adds a "Profile" tab next to the "Home" tab, like the old LT used to have (I actually made this shortly after the redesign but don't think I advertised it in this group).
This one's been updated to add the (editions) links to list pages, catalog pages, CK and helper logs, and awards/places/events pages.
Similar to the direct link for Amazon, uses the work's most popular ISBN to create a direct link to the book's page in WorldCat.
This script moves the "Improve this author" box to the top, always shows "(never)" links, always shows the search box, prepopulates it with the author name, and does a few more things (full list and screenshot on script page).
For each of the blurbers listed on a work, this script creates a link to their author page (assuming it exists)
HOWEVER, all the scripts previously stored in userscripts.org (including the librarything ones) are now available at http://www.webextender.net/index.html To get to the LT scripts from the webextender home page simply use 'librarything' as your search criteria.
I can't make any comment on whether any or all of these scripts are still functional. Although I believe Webextender holds 'uncorrupted' copies of the ones that were originally referenced from this discussion thread I wouldn't be surprised if changes made to LT over the years might not have caused some disruption/disjunction. Good luck, and immense credit to the folk that put them together in the first place.
Adds a link to any LibraryThing tag page that pops up a box showing any of your works that other users have applied that tag to, in the same way that the tag mirror page pops up a box with your works as others have popularly tagged them. The difference is that you can now see such information for any tag in the system, not just the ones that show up on your tag mirror or that you've tagged as such (without having to page through and search for green checkmarks).
Note the new "My books globally tagged ______" link.
Super-awesome. Thank you.
Any possibility of filtering out my uses of the tag? That would make it super-duper-awesome.
Ah well. I figured it wouldn't be trivial as the information needed is not on the page.
On another note, I seem to have found a bug. The script is working great on most tag pages I've checked. But a few have inexplicably come up with zero even when I can see check-marks on the first page of the list. Examples so far are Weimar Republic, Welsh, Wessex. The Ws don't mean anything. That's just where I am in the alphabet looking up potential combinations for my tags.
Thank you. I'd collected some more examples since I posted and your new version fixed those as well.
Amazon Wishlist Export
Adds a button on one's wish list pages to save a local copy of the list as a .tsv file.
Ignore articles/punctuation on combine page
This script changes the sort order of works on the "Combine/separation" pages of LibraryThing to ignore words like A, An, The, etc., at the beginning of work titles. Default is English, but you can add others as you see fit (and they'll stick around).
Notice that with German articles added into the new input box, Die Canterbury Schwestern and The Canterbury Sisters now sort by C instead of D and T. You can also use this temporarily to ignore parts of the title where an author's works are often prefixed. For example, adding "Blake" and "William Blake" to the input field results in the first entries sorting by numbers instead:
Bonus: It also ignores punctuation. Caveat: It currently doesn't work for compound articles such as L' (just those with a space after them).
Alphabetize book tags
Displays your books' tags in alphabetical order and also saves them in alphabetical order (if you make an edit to the existing tags, or edit and save anything on the "Edit book" page).
Warning: Don't use this script if you want to preserve a non-alphabetical ordering scheme you currently have in place.
Let me know if you run into issues or if there are places I just forgot to apply it.
A .NET implementation of the LibraryThing WebServices API.
Beta, of course.