Use your fanart.tv username and password to login to this forum, if you don't have one, clicking on register will take you to the registration form on fanart.tv

Any desire for a fanart.tv user script?

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

Postby Tobby » Sun Feb 02, 2014 12:25 pm

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
Tobby
Veteran
Veteran
 
Posts: 153
Joined: Fri Dec 20, 2013 4:17 pm
Location: Sweden

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

Postby akovia » Sun Feb 02, 2014 12:43 pm

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.
My body may be aging rapidly, but my mind is still tarp as a shack!
Getting Started
Navigating Fanart.tv
Why Your Image May be Denied
Moderation Time
Unwritten Rules
User avatar
akovia
Admin
Admin
 
Posts: 421
Joined: Wed Dec 18, 2013 3:37 pm

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

Postby akovia » Sun Feb 02, 2014 9:52 pm

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/93550827/temp/fanart_dark-compact_r1.css
My body may be aging rapidly, but my mind is still tarp as a shack!
Getting Started
Navigating Fanart.tv
Why Your Image May be Denied
Moderation Time
Unwritten Rules
User avatar
akovia
Admin
Admin
 
Posts: 421
Joined: Wed Dec 18, 2013 3:37 pm

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

Postby Mordred » Sun Feb 02, 2014 11:00 pm

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
Mordred
Moderator
Moderator
 
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

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

Postby akovia » Sun Feb 02, 2014 11:08 pm

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?
My body may be aging rapidly, but my mind is still tarp as a shack!
Getting Started
Navigating Fanart.tv
Why Your Image May be Denied
Moderation Time
Unwritten Rules
User avatar
akovia
Admin
Admin
 
Posts: 421
Joined: Wed Dec 18, 2013 3:37 pm

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

Postby Mordred » Sun Feb 02, 2014 11:30 pm

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
Mordred
Moderator
Moderator
 
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

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

Postby akovia » Mon Feb 03, 2014 12:03 am

updated without a hitch ;)
My body may be aging rapidly, but my mind is still tarp as a shack!
Getting Started
Navigating Fanart.tv
Why Your Image May be Denied
Moderation Time
Unwritten Rules
User avatar
akovia
Admin
Admin
 
Posts: 421
Joined: Wed Dec 18, 2013 3:37 pm

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

Postby akovia » Mon Feb 03, 2014 12:15 am

Oh, and a +1 to your idea of a denial count. :)
My body may be aging rapidly, but my mind is still tarp as a shack!
Getting Started
Navigating Fanart.tv
Why Your Image May be Denied
Moderation Time
Unwritten Rules
User avatar
akovia
Admin
Admin
 
Posts: 421
Joined: Wed Dec 18, 2013 3:37 pm

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

Postby Mordred » Mon Feb 03, 2014 7:34 am

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
Mordred
Moderator
Moderator
 
Posts: 72
Joined: Sun Dec 22, 2013 8:03 am

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

Postby Paszt » Mon Feb 03, 2014 4:41 pm

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;
   }
}
User avatar
Paszt
Veteran
Veteran
 
Posts: 40
Joined: Tue Dec 24, 2013 7:26 pm

PreviousNext

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 3 guests

cron