-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathChatFullName.user.js
36 lines (32 loc) · 1.16 KB
/
ChatFullName.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// ==UserScript==
// @name ChatFullName
// @namespace stackuserflow
// @version 0.1.6
// @description Mostra o nome completo nos chats da rede Stack Exchange
// @author Guilherme Nascimento (https://github.com/brcontainer)
// @match *://chat.stackoverflow.com/*
// @match *://chat.stackexchange.com/*
// @downloadURL https://github.com/stackuserflow/stackoverflow-tampermonkey-greasemonkey/raw/master/ChatFullName.user.js
// @updateURL https://github.com/stackuserflow/stackoverflow-tampermonkey-greasemonkey/raw/master/ChatFullName.user.js
// @grant none
// ==/UserScript==
(function (d) {
'use strict';
var custom = `.monologue .tiny-signature .username {
clear: both !important;
overflow: visible !important;
height: auto;
min-height: 12px;
}`;
function trigger()
{
var s = d.createElement('style');
s.textContent = custom;
d.head.appendChild(s);
}
if (/^(interactive|complete)$/i.test(d.readyState)) {
trigger();
} else {
d.addEventListener('DOMContentLoaded', trigger);
}
})(document);