CategoryIcon

 adds icons to links on category page, where image name = link target. Added images has class "cicon-image" by default.

Settings
Available through :
 * option - defaults - acceptable values
 * description


 * debug - false - true/false
 * some info spammed to console


 * restrict - true - true/false
 * run the script only in category: namespace


 * ext - .png - string
 * image format (extension)


 * cls - cicon-image - string
 * image class, for styling purposes


 * scale - /scale-to-width-down/100 - string
 * add scaling request to image path (reduces bandwith usage); last part (100) - size in pixels; use scale="" to disable


 * ci.iprepend - "" - string
 * prepend text to image name; result: string+name+ext


 * ci.iappend - "" - string
 * append text to image name; result: name+string+ext


 * ci.tprepend - "" - string
 * prepend text (span with class "cicon-prepend") to image tag; result: string


 * ci.tappend - "" - string
 * append text (span with class "cicon-append") to image tag; result: string

Example
//create object holding settings window.fng = $.extend(window.fng, {cicon:{}}); //set file extension to .svg window.fng.cicon.ext = '.svg'; //append 'Map ' to all filenames ('Map Earth' etc) window.fng.cicon.iprepend = 'Map '; //request downscaling to 50px window.fng.cicon.scale = '/scale-to-width-down/50'; With settings above the script searches files named "Map link.svg", where "link" is link text, then adds them to links.