Ahab / testing rev

// ==UserScript==
// @name         testing rev
// @version      0.2
// @description  try to take over the world!
// @include     https://www.torn.com/profiles.php?XID=*
// @author       You
// @grant        none
// @run-at      document-idle
// @license     MIT
// ==/UserScript==
 
 
 
$(document).on('click','#profileroot > div > div > div > div > div:nth-child(1) > div.profile-right-wrapper.right > div.profile-buttons.profile-action > div > div.cont.bottom-round > div > div > div > div.confirm-block > div > button.confirm-action.confirm-action-yes.t-blue.h.c-pointer.bold',function(){
    console.log('Revived - ' + window.location.href)
    var b = window.location.href
    var data = localStorage.getItem('revivelist.torn');
    if(data === undefined || data === null){
    localStorage.setItem('revivelist.torn', window.location.href);
    }
    else{
    var x = localStorage.getItem('revivelist.torn');
    var y = x +" "+b;
    localStorage.setItem('revivelist.torn', y);
    }
});

$(document).on('keydown', function ( e ) {
    // You may replace `q` with whatever key you want
    if ((e.metaKey || e.ctrlKey) && ( String.fromCharCode(e.which).toLowerCase() === 'q') ) {
        console.log(localStorage.getItem('revivelist.torn'));
    }
});

$(document).on('keydown', function ( e ) {
    // You may replace `z` with whatever key you want
    if ((e.metaKey || e.ctrlKey) && ( String.fromCharCode(e.which).toLowerCase() === 'z') ) {
        localStorage.removeItem('revivelist.torn');
    }
});