+12
-1
lines changedFilter options
+12
-1
lines changed Original file line number Diff line number Diff line change
@@ -8,7 +8,6 @@ body > div.body {
8
8
}
9
9
h2, h3 {
10
10
margin: 1em 0;
11
-
font-family: sans-serif;
12
11
}
13
12
h2 {
14
13
font-size: 18px;
Original file line number Diff line number Diff line change
@@ -74,6 +74,7 @@ const µBlock = (( ) => { // jshint ignore:line
74
74
suspendTabsUntilReady: 'unset',
75
75
uiPopupConfig: 'undocumented',
76
76
uiFlavor: 'unset',
77
+
uiStyles: 'unset',
77
78
updateAssetBypassBrowserCache: false,
78
79
userResourcesLocation: 'unset',
79
80
};
Original file line number Diff line number Diff line change
@@ -159,6 +159,10 @@ const onMessage = function(request, sender, callback) {
159
159
µb.toggleHostnameSwitch(request);
160
160
break;
161
161
162
+
case 'uiStyles':
163
+
response = µb.hiddenSettings.uiStyles;
164
+
break;
165
+
162
166
case 'userSettings':
163
167
response = µb.changeUserSettings(request.name, request.value);
164
168
break;
Original file line number Diff line number Diff line change
@@ -105,6 +105,13 @@ DOMListFactory.nodeFromSelector = function(selector) {
105
105
if ( window.matchMedia('(prefers-color-scheme: dark)').matches ) {
106
106
root.classList.add('dark');
107
107
}
108
+
109
+
// https://github.com/uBlockOrigin/uBlock-issues/issues/1044
110
+
// Offer the possibility to bypass uBO's default styling
111
+
vAPI.messaging.send('uDom', { what: 'uiStyles' }).then(response => {
112
+
if ( typeof response !== 'string' || response === 'unset' ) { return; }
113
+
document.body.style.cssText = response;
114
+
});
108
115
}
109
116
110
117
/******************************************************************************/
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4