A RetroSearch Logo

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

Search Query:

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

Support loading of benchmark dataset in published versions · gorhill/uBlock@b784b7d · GitHub

File tree Expand file treeCollapse file tree 3 files changed

+7

-7

lines changed

Filter options

Expand file treeCollapse file tree 3 files changed

+7

-7

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

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

42 42

autoUpdateAssetFetchPeriod: 120,

43 43

autoUpdateDelayAfterLaunch: 180,

44 44

autoUpdatePeriod: 7,

45 +

benchmarkDatasetURL: 'unset',

45 46

blockingProfiles: '11111/#F00 11011/#C0F 11001/#00F 00001',

46 47

cacheStorageAPI: 'unset',

47 48

cacheStorageCompression: true,

Original file line number Diff line number Diff line change

@@ -684,15 +684,18 @@

684 684

vAPI.setTimeout(( ) => {

685 685

ttlTimer = undefined;

686 686

datasetPromise = undefined;

687 -

}, 60000);

687 +

}, 5 * 60 * 1000);

688 688 689 689

if ( datasetPromise !== undefined ) {

690 690

return datasetPromise;

691 691

}

692 692 693 +

const datasetURL = µBlock.hiddenSettings.benchmarkDatasetURL;

694 +

if ( datasetURL === 'unset' ) {

695 +

return Promise.reject('No dataset');

696 +

}

693 697

console.info(`Loading benchmark dataset...`);

694 -

const url = vAPI.getURL('/assets/requests.json');

695 -

datasetPromise = µBlock.assets.fetchText(url).then(details => {

698 +

datasetPromise = µBlock.assets.fetchText(datasetURL).then(details => {

696 699

console.info(`Parsing benchmark dataset...`);

697 700

const requests = [];

698 701

const lineIter = new µBlock.LineIterator(details.content);

Original file line number Diff line number Diff line change

@@ -15,10 +15,6 @@ fi

15 15

rm -rf $DES

16 16

cp -R ./assets $DES/

17 17 18 -

if [ -f ./tmp/requests.json.gz ]; then

19 -

gunzip -c ./tmp/requests.json.gz > $DES/requests.json

20 -

fi

21 - 22 18

mkdir $DES/thirdparties

23 19

cp -R ../uAssets/thirdparties/easylist-downloads.adblockplus.org $DES/thirdparties/

24 20

cp -R ../uAssets/thirdparties/mirror1.malwaredomains.com $DES/thirdparties/

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