Recyclex / GBF Raid ID Copy

// ==UserScript==
// @name         GBF Raid ID Copy
// @version      20200615.1
// @description  Opens a prompt with raid ID and room ID when clicked, ready for copying.
// @match        *://game.granbluefantasy.jp/*
// @match        *://gbf.game.mbga.jp/*
// @require      http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @downloadURL  https://openuserjs.org/install/Recyclex/GBF_Raid_ID_Copy.user.js
// @updateURL    https://openuserjs.org/install/Recyclex/GBF_Raid_ID_Copy.user.js
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    $(document).on("click",".prt-battle-id",function(){
        var raidID = document.querySelector('.prt-battle-id').textContent;
        prompt("Raid ID: ", raidID);
        return false;
    });
    $(document).on("click",".txt-info-content",function(){
        var roomID = document.querySelector('.txt-room-id').textContent;
        prompt("Room ID: ", roomID);
        return false;
    });
    $(document).on("click",".btn-room-info",function(){
        var roomID = document.querySelector('.txt-room-id').textContent;
        prompt("Room ID: ", roomID);
        return false;
    });
})();