LT Cover Navigation - A Total Conversion

CharlasHacking LibraryThing

Únete a LibraryThing para publicar.

LT Cover Navigation - A Total Conversion

Este tema está marcado actualmente como "inactivo"—el último mensaje es de hace más de 90 días. Puedes reactivarlo escribiendo una respuesta.

1brightcopy
Editado: Abr 8, 2013, 8:25 am

I'm pretty darn proud to present this new script. I spent an embarassingly large amount of time on it, including getting it to work right in both Chrome and FF. I also added some new features to the Work Editions grid that interact with it in a fantastic way.

Get it here

(Click images for larger versions.)






This script replaces the cover selection popup with an enhanced version. Features include:


  • Navigation using the left and right arrows to go to the previous/next cover without closing the popup and clicking a new cover

  • Pressing the Escape key to close the popup

  • A strip showing a thumbnail of the current cover and the ones before and after it. Numbers below it show the cover # in the list, with Amazon covers in italics.

  • The ability to jump directly to the first Amazon or member-uploaded cover

  • Taking up the entire width of the browser window. The cover image is also scaled to take up the entire window.

  • Your ISBN colored in green in the various ISBN data

  • A jump list showing small thumbnails of all the covers. If not all covers have been loaded, a small thumbnail with a number on it will allow you to load the rest.

  • Full sized Amazon cover image is substituted for possibly smaller version (makes it easier to copy the proper image location).

  • The original size for Amazon covers is added to the information section

  • The ISBN for Amazon covers is added

  • A link to the Amazon listing is added

  • A link to the Amazon image correction page is added

  • A link to update the Amazon product information

  • The currently selected cover is moved to the top of the list of covers (should it be among the covers currently loaded)

  • All mentions of the ISBN of the book page loaded (the one you clicked the covers link from) are highlighted in green text

  • All ISBNs are turned into links. These links go to the editions list. If you have my LibraryThing Work Editions Grid script (be sure to update to the current version), it will highlight those editions with this ISBN with a green background in the grid and scroll down to them.

  • Clickable shortcut buttons

  • Clicking on Amazon covers will automatically upload the cover image from Amazon to LT rather than setting your cover to point to Amazon (who can later change the cover).

  • Hovering over the image will cause a border to appear, making it easy to tell what's part of the image and what isn't.



I probably left some features out of this list. The feature creep is part of the reason I've been working on this for weeks.

2.Monkey.
Abr 8, 2013, 6:07 am

Oh holy crap *jaw drop* this is amazing!!

3SylviaC
Abr 8, 2013, 8:24 am

Wow! That looks great. I'll try it out later, when I'm at my other computer.

4dekesolomon
Abr 8, 2013, 8:33 am

The kid in the baseball cap looks like he's packin' a load in his shorts.

5brightcopy
Editado: Abr 8, 2013, 12:05 pm

BTW, here's a screenshot of what you get when you click on an ISBN and you have the current Work Editions Grid script installed:


More on that aspect here.

6jjmcgaffey
Editado: Abr 8, 2013, 3:01 pm

Ooookay. Two scripts to upload...

Oh. One thing - the "Clicking on Amazon covers will automatically upload the cover image from Amazon to LT rather than setting your cover to point to Amazon" - that'll run into the LT 0x0 bug, won't it? So I think I'll still do the right-click and download thing. But not having to go clean it up first helps. This is gonna be fun.

7brightcopy
Abr 8, 2013, 3:05 pm

#6 by jjmcgaffey> I don't believe it should run into the 0x0 bug. That bug had two sources:
1) Tim was using an old url for amazon images and they changed it.
2) For certain sizes, Amazon returned a 0x0 image.

Tim fixed #1. Since I'm taking the unsized image, I don't think you'd ever run into this bug. And if you did, it would be obvious because there'd be no amazon cover image showing. But I have never seen an example where it returns a 0x0 image for the unsized cover. Can you find one?

8Bookmarque
Abr 8, 2013, 3:42 pm

ok so I'm intrigued.
I've read about your greasemonkey scripts before, but I've never tried one. In fact, I don't use any plugins for my browser at all. Gasp! I know, how 20th century of me.
So what else, besides download it, do I need to do to make these things work? The last thing I want is some screwed up thing to happen to my browser. I think it happened once and so I've avoided them ever since.

9brightcopy
Abr 8, 2013, 3:50 pm

#8 by Bookmarque> I decided to create a catchall "How do I use this?" topic because this comes up in lots of threads. Pop on over here:
http://www.librarything.com/topic/152707

10jjmcgaffey
Editado: Abr 8, 2013, 4:12 pm

7> Is the unsized cover the naked URL? I always clean up the URL, and I did a lot of grabs with that clean URL that came out with 0x0.

No, no. It's not that it returns a 0x0 (or even 1x1) cover image. The image is fine, it's full size and beautiful. But LT _records_ and displays the size as 0x0, which means it never gets the High Quality marker. Not a major problem, unless you are specifically trying to clean up the low quality covers in your catalog.

Here's one - http://www.librarything.com/work/5144439/covers/92295838.
All the covers are in the 100 to 200 pixel range for height, except the best one which is my Grab from the Amazon 346x500 cover image. That one displays as "Original size: 0x0"

ETA - I believe Tim said somewhere that the actual original size is properly recorded somewhere, but it's not getting passed to the bits that display it in the information popup (including yours, of course - if LT says it's 0x0, so will yours), nor to the bit that assigns the High Quality overlay. I think it was bugged, but apparently not by me - I can't find it.

ETA 2 - did find it, but there's been no LT employee comments. I bumped it. http://www.librarything.com/topic/147095

11rebeccanyc
Abr 8, 2013, 5:22 pm

#8 Thanks for asking that, Bookmarque, because I had the same question and was about to ask it! And thanks for the new thread, brightcopy. I am starring this because I'm getting a new laptop in the next couple of weeks and will wait to install these until then.

12brightcopy
Abr 8, 2013, 5:40 pm

#10 by jjmcgaffey> Thanks for tracking that down. No, this won't do anything to solve that, unfortunately. Only benefit is you'll get the unsized cover as the url (as you mentioned). There's really no other way the script can work, so if the bug is an annoyance for you you'll have to continue your workaround. On the plus side, my script does list the correct dimensions on the cover popup even if it's not on the main page.

Hopefully Tim will just fix that bug.

Translation for anyone lost on this issue: Don't worry about it, it's not a huge issue, just an annoyance that you might not even ever notice.

13jjmcgaffey
Abr 8, 2013, 9:16 pm

Hopefully. Once the GR flood calms down, maybe there'll be a bug sweep? It's always so nice when those happen. Though GR has provided a few RSI fixes we'd long since given up on (time zones!).

14macsbrains
Abr 9, 2013, 11:41 pm

This is GREAT! Thank you!

15ScarletBea
Abr 10, 2013, 3:12 am

I'm just like Bookmarque, but after reading this thread I decided to give it a try.

However I use Chrome at home and I can't install them :/
I tried your get-around of "saving it in your computer", but I don't even get that option, when I click 'install' it just says I can't. And I don't want to install the other option, seems far too 'intrusive', sorry...

16avatiakh
Editado: Abr 10, 2013, 3:35 am

I got this running in Chrome using Tampermonkey and it's great.
I'm so happy with your scripts that I've installed these past few days especially the 'more' in add books.

17brightcopy
Abr 10, 2013, 10:49 am

#15 by ScarletBea> I'm a little puzzled by this. Did you install TamperMonkey? I can't think of any reason why it would say you can't install it. It works swimmingly with Chrome withot jumping through any hoops or saving it to your computer or anything. Is this on a mobile device?

18bestem
Abr 10, 2013, 1:22 pm

>15 ScarletBea: Look in your downloads folder anyway. When you click install, it won't install it right away because it's not in the Chrome store, but it downloads automatically. The file should be called "164444.user". After you find the file, open up your extensions page, and drag it onto the extensions page. That'll install it for you.

19ScarletBea
Editado: Abr 10, 2013, 1:37 pm

17/Brightcopy, no I was trying to use the other option, which leads me to..
18/Besten, it worked, thanks!!!

Now I have a problem. Apparently they're installed, they're both there (the work editions and the covers) as 'enabled', but... I still see the editions list as a messy list, not the promised grid :/
What am I doing wrong/haven't done yet?

By the way, I'm trying to see that by selecting a book and then clicking on 'Editions' on the left side menu, am I in the right place?

(sorry for being basic...)

20brightcopy
Abr 10, 2013, 2:37 pm

Let me ask once again - have you installed the TamperMonkey extension? Chrome's built-in support for Greasemonkey scripts is lacking. That's why I say in the wiki page to install TamperMonkey beforeyou install any scripts.

21ScarletBea
Abr 10, 2013, 3:27 pm

No, I didn't, that's what I meant when I said "using the other option". In the instructions on the userscripts.org it says this:

"Chrome does not allow scripts to be installed directly from the website, so here are a couple of workarounds:

1. Manual Install
Click the install button to download the script to your computer.
Click on the "Customize Google Chrome Button" to the right of the address bar and go to Tools > Extensions
Drag the downloaded script onto the Extensions page
Customize and install the script

2. Using Tampermonkey
...."

So I just used the first option and thought that it would work.

It's ok if it doesn't work, don't worry more about it. Thanks anyway :)

22Bookmarque
Abr 10, 2013, 3:37 pm

ah. now I remember why I don't do this stuff. oy.

23brightcopy
Abr 10, 2013, 4:20 pm

#21 by ScarletBea> I know I sound like a broken record, but: Install Tampermonkey. You're just asking for headaches otherwise. Uninstall the scripts you've installed, install Tampermonkey, then install the scripts.

24brightcopy
Abr 10, 2013, 4:43 pm

#22 by Bookmarque> It's really NOT that hard. It's just poorly documented.

I'm mulling creating a simple step-by-step guide aimed at LT users.

26ScarletBea
Abr 11, 2013, 3:05 am

Thanks!

27macsbrains
mayo 28, 2013, 3:35 pm

I think an update to Firefox today may have slightly broken this wonderful covers script for me. (I hope not; I love this script!)

FF v 21.0, Vista

I can no longer cycle through the covers. The covers supersize normally with the info, but the arrow keys only flip flop between the first member cover and the first amazon cover, and the little ribbon on the upper right with the thumbnails also only has 1 cover in it. When I get home I'll see if it now happens on my home computer too. (On LT at work, yes, I know...)

28brightcopy
mayo 28, 2013, 3:41 pm

Yeah, I've been running into that as well. Gonna try to get some time to fix it.

29brightcopy
Jun 9, 2013, 3:32 pm

I believe I've fixed the problem. Not sure WHY it was a problem now in the current version of FF (Chrome was unaffected, so those users can ignore this), but it shouldn't be now. It's uploaded.

If you're on Firefox, you'll need to go to the userscripts page below and click on the green button at the very top-right of the screen labeled "Install" (be careful and don't click on any green buttons from ads - they won't be at the top-right):

http://userscripts.org/scripts/show/164444

30macsbrains
Jun 9, 2013, 11:17 pm

It seems to be working correctly now. Thank you!

31SylviaC
Jun 12, 2013, 12:24 pm

>29 brightcopy: I get a Bad Gateway error when I click on that link.

32brightcopy
Jun 12, 2013, 12:57 pm

Yeah, userscripts.org is flakey from time to time. Just reload it a bit and eventually it will work.

33SylviaC
Jun 12, 2013, 1:41 pm

Thanks. Worked this time.