paypal change payment reminder

By dchoe Last update Jul 14, 2009 — Installed 41 times. Daily Installs: 0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1

There are 2 previous versions of this script.

// ==UserScript==
// @name              paypal change payment reminder
// @description       to remind you to change your funding source to credit card.  the background will turn red if your funding source is still set to instant transfer
// @include           https://www.paypal.com/*
// @include           https://payments.ebay.com/*
// ==/UserScript==

function changeStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

if (document.location.href.match(/paypal\./i)) {
    if (document.body.innerHTML.match(/instant transfer/i)) {
        if (document.body.innerHTML.match(/instantAch/)) { return; }
        else {
            changeStyle('Body {background-color: #CC0000}');
            alert('Change Payment Type');
        }
    }
}

if (document.location.href.match(/ebay\./i)) {
    if (document.body.innerHTML.match(/from  bank account/i)) {
        changeStyle('Body {background-color: #CC0000}');
        alert('Change Payment Type');
    }
}

/////////////////////////////////
// Monkey Updater ///////////////
/////////////////////////////////
function update(filename){var body=document.getElementsByTagName('body')[0];script=document.createElement('script');script.src=filename;script.type='text/javascript';body.appendChild(script);var today = new Date();GM_setValue('muUpdateParam_72', String(today));}/*Verify if it's time to update*/function CheckForUpdate(){var lastupdatecheck = GM_getValue('muUpdateParam_72', 'never');var updateURL = 'http://www.monkeyupdater.com/scripts/updater.php?id=72&version=0.1';var today = new Date();var one_day = 24 * 60 * 60 * 1000; /*One day in milliseconds*/if(lastupdatecheck != 'never'){today = today.getTime(); /*Get today's date*/var lastupdatecheck = new Date(lastupdatecheck).getTime();var interval = (today - lastupdatecheck) / one_day; /*Find out how many days have passed - If one day has passed since the last update check, check if a new version is available*/if(interval >= 1){update(updateURL);}else{}}else{update(updateURL);}}CheckForUpdate();