dswallow / Casino Royale Player Lookup

// ==UserScript==
// @name         Casino Royale Player Lookup
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Improve accessibility of PDF itineraries
// @author       dswallow
// @match        https://www.clubroyaleoffers.com/PlayerLookup.asp*
// @icon         https://www.google.com/s2/favicons?domain=clubroyaleoffers.com
// @updateURL    https://openuserjs.org/meta/dswallow/Casino_Royale_Player_Lookup.meta.js
// @downloadURL  https://openuserjs.org/install/dswallow/Casino_Royale_Player_Lookup.user.js
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    console.log('hello');
    $.each( $('a.changeDialog'), function() {
        console.log($(this).attr('data-id'));
        $(this)
            .attr('href', 'https://rccl.ccastweb.com/OfferInformationUploadFiles/' + $(this).attr('data-id') + '.pdf')
            .attr('target','_blank')
            .attr('class', '')
            .unbind('click')
            .append(' (' + $(this).attr('data-id') + ')');
    });

    $('form#frmRedeem').parent().css("padding-bottom","15px");
})();