-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCS_UI_Fix.user.js
More file actions
96 lines (96 loc) · 4.65 KB
/
CS_UI_Fix.user.js
File metadata and controls
96 lines (96 loc) · 4.65 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// ==UserScript==
// @name Charles Schwab UI Fix
// @homepageURL https://github.com/AlgoClaw/UImods/blob/main/CS_UI_Fix.user.js
// @downloadURL https://raw.githubusercontent.com/AlgoClaw/UImods/main/CS_UI_Fix.user.js
// @updateURL https://raw.githubusercontent.com/AlgoClaw/UImods/main/CS_UI_Fix.user.js
// @include *://*.schwab.com/*
// @description null
// @version 0.001
//
// ==/UserScript==
//
var CSSMod = /** @class */ (function () {
function CSSMod() {
var _this = this;
this.isEmbedded = window.top !== window.self;
document.body.classList.add("CSS-fix");
};
//
CSSMod.prototype.applyFix = function () {
this.addCSS();
var _this = this;
};
//
CSSMod.prototype.addCSS = function () {
var css = "";
var StyleId = "CSSFix-Style";
//
css = this.applyCSSFix(css);
//
var style = document.getElementById(StyleId);
style = document.createElement("style");
style.id = StyleId;
style.textContent = css;
document.head.appendChild(style);
};
CSSMod.prototype.applyCSSFix = function (css) {
//
css += ".module-spacer {display: none !important;}\n"; //
css += ".message-container {display: none !important;}\n"; //
css += ".positions-footnotes {display: none !important;}\n"; //
css += ".show-disclosures {display: none !important;}\n"; //
css += "[id=quickQuote] {display: none !important;}\n"; //
css += "[id=meganav-footer-container] {display: none !important;}\n"; //
css += "[id=sectionQq] {display: none !important;}\n"; //
css += "[id=newAccountMessaging] {display: none !important;}\n"; //
css += "[id=right_rail_collapsed] {display: none !important;}\n"; //
css += "[id=SnapContainer] {display: none !important;}\n"; //
css += "[id=accountDisclosuresLinkId] {display: none !important;}\n"; //
css += "[id=section-body] {margin-bottom: 0px !important;}\n"; //
css += "[id=lblComplianceNo] {display: none !important;}\n"; //
css += ".sdps-p-top_medium {padding-top: 0px !important;}\n"; //
//
css += ".leftPanel {width: 50% !important;}\n"; //
css += ".leftPanel {min-width: 900px !important;}\n"; //
css += ".sdps-flex {width: 50% !important;}\n"; //
css += ".sdps-flex {min-width: 900px !important;}\n"; //
css += ".container-full {display: flex !important;}\n"; //
css += ".container-full {flex-direction: column !important;}\n"; //
css += ".container-full {align-items: center !important;}\n"; //
//
css += ".sdps-m-around_large {margin-top: 0px !important;}\n"; //
css += ".sdps-m-around_large {margin-bottom: 0px !important;}\n"; //
css += ".sdps-m-around_large {margin-left: 0px !important;}\n"; //
css += ".sdps-m-around_large {margin-right: 0px !important;}\n"; //
css += ".sdps-flex {margin-top: 0px !important;}\n"; //
css += ".sdps-flex {margin-bottom: 0px !important;}\n"; //
css += ".sdps-flex {margin-left: 0px !important;}\n"; //
css += ".sdps-flex {margin-right: 0px !important;}\n"; //
//
css += ".leftPanel {padding-left: 0px !important;}\n"; //
css += ".leftPanel {padding-right: 0px !important;}\n"; //
css += ".sdps-panel__body {padding-top: 0px !important;}\n"; //
css += ".sdps-panel__body {padding-bottom: 0px !important;}\n"; //
//css += ".sdps-panel__body {padding-left: 0px !important;}\n"; //
//css += ".sdps-panel__body {padding-right: 0px !important;}\n"; //
//
css += ".group-footer {padding-top: 0px !important;}\n"; //
css += ".group-footer {padding-bottom: 0px !important;}\n"; //
css += ".account-row {line-height: 0px !important;}\n"; //
css += ".category-heading {padding-bottom: 0px !important;}\n"; //
css += ".vertical-aligned {padding-top: 0px !important;}\n"; //
css += ".vertical-aligned {padding-bottom: 0px !important;}\n"; //
css += ".vertical-center {height: 0px !important;}\n"; //
css += "[id=panel-heading] {padding-top: 0px !important;}\n"; //
css += "[id=panel-heading] {padding-bottom: 0px !important;}\n"; //
//
css += ".sdps-header__nav-item--secondary {margin-top: 0px !important;}\n"; //
css += ".sdps-header__nav-item--secondary {margin-bottom: 0px !important;}\n"; //
css += ".sdps-header__nav-list {padding-top: 0px !important;}\n"; //
//css += ".sdps-m-around_large {margin: 0px !important;}\n"; //
//
return css;
};
return CSSMod;
}());
new CSSMod().applyFix();