User:Shining-Armor/cologneblue.js

/** * Cologne Blue.js * * @Author: *    Shining-Armor * * @Description: *    Performs witchcraft to make the Cologne Blue skin useable * * @Reason: *    Because why not? */

var href; function strip_section_thing(link) { return link.split('#')[0]; }   function contains_query_parameter(link) { return (link.indexOf('?') > -1) ? true : false; }   $('a').each(function {        if (typeof $(this).attr('href') !== 'undefined') {            href = $(this).attr('href');            href = strip_section_thing(href);            if (contains_query_parameter(href)) {                href += '&useskin=cologneblue';            } else {                href += '?useskin=cologneblue';            }            $(this).attr('href', href);        }    }); })($);
 * (function($) {