00833827 / Donedeal.ie Phone Number Text Display

// ==UserScript==
// @name         Donedeal.ie Phone Number Text Display
// @namespace    http://cycles.ie/
// @version      0.1
// @description  Donedeal.ie hides the sellers phone number only revealing it by clicking a button, this script adds it to the other user detail without button click being required - also its in plain selectable text, not an image as donedeal.ie generates
// @author       Danny Carroll
// @match        http://*/*
// @include      http://www.donedeal.ie/*
// @include      https://www.donedeal.ie/*
// @include      http://donedeal.ie/*
// @include      https://donedeal.ie/*
// @require      https://raw.githubusercontent.com/jquery/jquery/2.1.1/dist/jquery.min.js
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var phoneNumber;
    angular.element('#show-number-btn').triggerHandler('click');
    setTimeout(function(){
        //for some reason the number appears twice so dividing it in half
        phoneNumber = $('.dynamic-seller-number').text().substring($('.dynamic-seller-number').text().length/2);
        $( "<dl class=\"seller-detail\"><dt class=\"seller-detail-label\">Phone Number</dt><dd class=\"seller-detail-value\">"+phoneNumber+"</dd></dl>" ).insertBefore( ".seller-verification-status" );
    }, 500);
})();