Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Stumblechat chat compact
- // @namespace https://greasyfork.org/en/users/1244737
- // @version 1
- // @description Makes the messages only use 1 line.
- // @author robomoist
- // @license MIT
- // @grant GM_addStyle
- // @run-at document-start
- // @include https://stumblechat.com/room/*
- // @downloadURL https://update.greasyfork.org/scripts/484175/Stumblechat%20chat%20compact.user.js
- // @updateURL https://update.greasyfork.org/scripts/484175/Stumblechat%20chat%20compact.meta.js
- // ==/UserScript==
- (function() {
- let css = `
- .message .nickname ~ .content {
- display: inline-block;
- top: -7px;
- position: relative;
- margin-left: 2px;
- margin-right: 1em;
- }
- .content + .content {
- display: inline-block!important;
- margin-right: 1em;
- }
- .message .nickname ~ .content span {
- line-height: 1.5em;
- }
- `;
- if (typeof GM_addStyle !== "undefined") {
- GM_addStyle(css);
- } else {
- let styleNode = document.createElement("style");
- styleNode.appendChild(document.createTextNode(css));
- (document.querySelector("head") || document.documentElement).appendChild(styleNode);
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement