Any desire for a fanart.tv user script?

User avatar
Tobby
Veteran
Veteran
Posts: 153
Joined: Fri Dec 20, 2013 4:17 pm
Location: Sweden

Re: Any desire for a fanart.tv user script?

Post by Tobby »

Mordred wrote:I don't really want to get too far down this road though if I'm the only guy using Chrome though.
Chrome here too
User avatar
akovia
Admin
Admin
Posts: 441
Joined: Wed Dec 18, 2013 3:37 pm

Re: Any desire for a fanart.tv user script?

Post by akovia »

I use em all :P
Opera
Chrome
Firefox

I'd say a chrome ext would be cool. I'm sure the actual code could be ported to other browsers if there was enough interest.
Not sue if you know about the extension Minimalist, but it may suit your needs as it groups both js and css to modify a site with modules. Might save some coding. A proprietary extension would been kinda cool though.
User avatar
akovia
Admin
Admin
Posts: 441
Joined: Wed Dec 18, 2013 3:37 pm

Re: Any desire for a fanart.tv user script?

Post by akovia »

Well I really just built this for myself, but if anyone wants to try it out and bug check it, feel free.
Code has been beautified, but not grouped or commented yet. Only tested on Chrome.

https://dl.dropboxusercontent.com/u/935 ... act_r1.css
User avatar
Mordred
Moderator
Moderator
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

Re: Any desire for a fanart.tv user script?

Post by Mordred »

Early, early beta/preview/whatever. I'm really just publishing this now so that you guys can get on board early and it's my understanding that it will auto-update as I release new versions.

https://chrome.google.com/webstore/deta ... hhnnlpabpp

It was a little pain getting things setup for the chrome store. Plus they charged a $5 developer fee which was annoying :D Hopefully it'll be smooth sailing from here on out.
User avatar
akovia
Admin
Admin
Posts: 441
Joined: Wed Dec 18, 2013 3:37 pm

Re: Any desire for a fanart.tv user script?

Post by akovia »

Can you post a list of the features? Will help to bug find.
Trying it now and I love the empty section collapse!

Either way, Fantastic Work!

P.S. did you get my PM?
User avatar
Mordred
Moderator
Moderator
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

Re: Any desire for a fanart.tv user script?

Post by Mordred »

If you mean from last night, then yes. I replied with a solution. I'm guessing you didn't see it though as I don't have any other PMs :)

Features so far:
- Adds the "custom" logo to the Fanart.tv logo
- stops spinning cdart when browsing members pages (not artists currently)
- linkifys album titles for music-images
- fixes broken record labels in member pages
- removes blank space from everywhere and shrinks page headers if there's no background image

version 0.1.0 also has an alert whenever you visit the http://fanart.tv/movie-fanart/ page. Probably not what you want, so I just updated the script to 0.1.1 which removes that annoyance. Can you let me know if it auto updates for you?
User avatar
akovia
Admin
Admin
Posts: 441
Joined: Wed Dec 18, 2013 3:37 pm

Re: Any desire for a fanart.tv user script?

Post by akovia »

updated without a hitch ;)
User avatar
akovia
Admin
Admin
Posts: 441
Joined: Wed Dec 18, 2013 3:37 pm

Re: Any desire for a fanart.tv user script?

Post by akovia »

Oh, and a +1 to your idea of a denial count. :)
User avatar
Mordred
Moderator
Moderator
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

Re: Any desire for a fanart.tv user script?

Post by Mordred »

Added ability to stop spinning cdart/moviedisc everywhere, and you can now toggle visibility of different sections on artist pages. I'll probably get movie/series done tomorrow, but that'll have to wait for now.
User avatar
Paszt
Veteran
Veteran
Posts: 40
Joined: Tue Dec 24, 2013 7:26 pm

Re: Any desire for a fanart.tv user script?

Post by Paszt »

This is useful, thanks Mordred.

There's an issue with the click event for the checkBoxes that hide the sections.
In line 100 of fanart_content_script.js

Code: Select all

// change
var val = new Boolean(localStorage.getItem(this.id));
// to
var val = localStorage.getItem(this.id) == 'true';
Here's a function that swaps the title text at the top of art pages for the first HDLogo, if one exists. It works for movies, artists, and series.

Code: Select all

function swapTitleTextForLogo() {
	var firstLogo = $('.section-wrapper:first div.container ul.artwork li div.inset_box a img')[0];
	if (firstLogo) {
		var titleImg = document.createElement('img');
		titleImg.src = firstLogo.src.slice(0, -3)+"400";
		titleImg.alt = firstLogo.alt;
		$('div.title_box h1')[0].innerHTML = titleImg.outerHTML;
	}
}
Post Reply