whatnowmax / case_title_in_tab_title

// ==UserScript==
// @name case_title_in_tab_title
// @descriptioncase_title_in_tab_title
// @version 1.1
// @author whatnowmax
// @license MIT
// @match https://crm.stagrp.com/index.php?action=DetailView&module=Cases&record=*
// @match https://crm.stagrp.com/index.php?module=Cases*

// @run-at document-end
// @grant none
// ==/UserScript==

(function() {
    'use strict';

    var _casenum = document.getElementById("case_number").innerText;
    var _caseSubject = document.getElementById("name").innerText;
    document.title = _casenum + " - " + _caseSubject;

})();