A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/gorhill/uBlock/commit/162e53727099ccb0a088cc1399915fb23d9b4fec below:

Make the creation of _allow_ rules in panel an opt-in feature · gorhill/uBlock@162e537 · GitHub

File tree Expand file treeCollapse file tree 4 files changed

+23

-10

lines changed

Filter options

Expand file treeCollapse file tree 4 files changed

+23

-10

lines changed Original file line number Diff line number Diff line change

@@ -478,7 +478,9 @@ body.advancedUser #firewall > div > span.noopRule.ownRule,

478 478 479 479

#actionSelector {

480 480

box-sizing: border-box;

481 +

display: flex;

481 482

height: 100%;

483 +

justify-items: stretch;

482 484

left: 0;

483 485

overflow: hidden;

484 486

position: absolute;

@@ -488,16 +490,17 @@ body.advancedUser #firewall > div > span.noopRule.ownRule,

488 490

}

489 491

#actionSelector > span {

490 492

display: inline-block;

491 -

height: 100%;

493 +

flex-grow: 1;

492 494

}

493 495

#actionSelector > #dynaAllow {

494 -

width: 33%;

496 +

display: none;

497 +

}

498 +

body.godMode #actionSelector > #dynaAllow {

499 +

display: inline-block;

495 500

}

496 501

#actionSelector > #dynaNoop {

497 -

width: 33.5%;

498 502

}

499 503

#actionSelector > #dynaBlock {

500 -

width: 33.5%;

501 504

}

502 505

#actionSelector > #dynaCounts {

503 506

background-color: transparent;

Original file line number Diff line number Diff line change

@@ -68,6 +68,7 @@ const µBlock = (( ) => { // jshint ignore:line

68 68

popupFontSize: 'unset',

69 69

popupPanelDisabledSections: 0,

70 70

popupPanelLockedSections: 0,

71 +

popupPanelGodMode: false,

71 72

popupPanelHeightMode: 0,

72 73

requestJournalProcessPeriod: 1000,

73 74

selfieAfter: 3,

Original file line number Diff line number Diff line change

@@ -269,6 +269,7 @@ const popupDataFromTabId = function(tabId, tabTitle) {

269 269

const tabContext = µb.tabContextManager.mustLookup(tabId);

270 270

const rootHostname = tabContext.rootHostname;

271 271

const µbus = µb.userSettings;

272 +

const µbhs = µb.hiddenSettings;

272 273

const r = {

273 274

advancedUserEnabled: µbus.advancedUserEnabled,

274 275

appName: vAPI.app.name,

@@ -278,7 +279,8 @@ const popupDataFromTabId = function(tabId, tabTitle) {

278 279

firewallPaneMinimized: µbus.firewallPaneMinimized,

279 280

globalAllowedRequestCount: µb.localSettings.allowedRequestCount,

280 281

globalBlockedRequestCount: µb.localSettings.blockedRequestCount,

281 -

fontSize: µb.hiddenSettings.popupFontSize,

282 +

fontSize: µbhs.popupFontSize,

283 +

godMode: µbhs.filterAuthorMode || µbhs.popupPanelGodMode,

282 284

netFilteringSwitch: false,

283 285

rawURL: tabContext.rawURL,

284 286

pageURL: tabContext.normalURL,

@@ -288,16 +290,16 @@ const popupDataFromTabId = function(tabId, tabTitle) {

288 290

pageBlockedRequestCount: 0,

289 291

popupBlockedCount: 0,

290 292

popupPanelSections: µbus.popupPanelSections,

291 -

popupPanelDisabledSections: µb.hiddenSettings.popupPanelDisabledSections,

292 -

popupPanelLockedSections: µb.hiddenSettings.popupPanelLockedSections,

293 -

popupPanelHeightMode: µb.hiddenSettings.popupPanelHeightMode,

293 +

popupPanelDisabledSections: µbhs.popupPanelDisabledSections,

294 +

popupPanelLockedSections: µbhs.popupPanelLockedSections,

295 +

popupPanelHeightMode: µbhs.popupPanelHeightMode,

294 296

tabId: tabId,

295 297

tabTitle: tabTitle,

296 298

tooltipsDisabled: µbus.tooltipsDisabled

297 299

};

298 300 299 -

if ( µb.hiddenSettings.uiPopupConfig !== 'undocumented' ) {

300 -

r.uiPopupConfig = µb.hiddenSettings.uiPopupConfig;

301 +

if ( µbhs.uiPopupConfig !== 'undocumented' ) {

302 +

r.uiPopupConfig = µbhs.uiPopupConfig;

301 303

}

302 304 303 305

const pageStore = µb.pageStoreFromTabId(tabId);

Original file line number Diff line number Diff line change

@@ -644,6 +644,13 @@ let renderOnce = function() {

644 644

if ( popupData.popupPanelHeightMode === 1 ) {

645 645

body.classList.add('vMin');

646 646

}

647 + 648 +

// Prevent non-advanced user opting into advanced user mode from harming

649 +

// themselves by disabling by default features generally suitable to

650 +

// filter list maintainers and actual advanced users.

651 +

if ( popupData.godMode ) {

652 +

body.classList.add('godMode');

653 +

}

647 654

};

648 655 649 656

/******************************************************************************/

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