MCPcopy Create free account

hub / github.com/duckduckgo/duckduckgo-privacy-extension / functions

Functions952 in github.com/duckduckgo/duckduckgo-privacy-extension

↓ 110 callersMethodget
* Called using either a chrome tab object or by id * get({tabId: ###}); * @returns {Tab|undefined}
shared/js/background/tab-manager.js:104
↓ 99 callersMethodgetSetting
(key)
unit-test/helpers/mocks.js:10
↓ 88 callersMethodisSubFeatureEnabled
* @param {string} featureName * @param {string} subFeatureName * @param {string} [cohortName] * @returns {boolean}
shared/js/background/components/remote-config.js:120
↓ 84 callersMethodhas
(id)
shared/js/background/tab-manager.js:95
↓ 83 callersMethodset
(property, val)
shared/js/background/classes/company.js:21
↓ 79 callersMethodupdateConfig
* * @param {Config} configValue
shared/js/background/components/remote-config.js:90
↓ 65 callersMethodisFeatureEnabled
* Checks different toggles we have in the application: * - User toggle off * - Remotely disable it * - tempAllowlist * -
shared/js/background/classes/site.js:168
↓ 63 callersFunctiongenerateDNRRule
* Generates a declarativeNetRequest rule with the given details. * * @overload * @param {Omit<generateDNRRuleDetails, 'id'>} ruleDetails * @return
packages/ddg2dnr/lib/utils.js:174
↓ 60 callersMethodupdateSetting
(key, value)
unit-test/helpers/mocks.js:13
↓ 59 callersFunctionaddDomain
(blockList, domain, entity, defaultAction, rules)
packages/ddg2dnr/test/tds.js:26
↓ 41 callersMethodready
()
shared/js/background/components/tds.js:50
↓ 40 callersMethodadd
(el)
shared/js/background/classes/top-blocked.js:6
↓ 40 callersMethodurl
()
shared/js/background/classes/tab.js:135
↓ 36 callersMethodincrement
* @param {string} key * @param {number} [now] optional timestamp to use as the current time
shared/js/background/classes/tracker-stats.js:46
↓ 35 callersFunctionbeforeEach
()
packages/ddg2dnr/test/utils/hooks.js:12
↓ 34 callersMethodcreate
(tabData)
shared/js/background/tab-manager.js:49
↓ 33 callersMethodsetValue
* @template {InstanceType<typeof TabState>} T * @template {keyof T} K * @param {K} key * @param {T[K]} value
shared/js/background/classes/tab-state.js:90
↓ 31 callersFunctionemptyBlockList
()
packages/ddg2dnr/test/utils/helpers.js:94
↓ 30 callersFunctionbeforeAll
()
packages/ddg2dnr/test/utils/hooks.js:4
↓ 30 callersFunctionregisterMessageHandler
(name, func)
shared/js/background/message-registry.js:15
↓ 29 callersMethodgetLists
(preferLocal = false)
shared/js/background/storage/https.js:44
↓ 28 callersMethodget
(property)
shared/js/background/classes/company.js:17
↓ 28 callersFunctionrouteFromLocalhost
(page, overrideHandler)
integration-test/helpers/testPages.js:18
↓ 27 callersMethodrecord
* This will be called for every 'blocked' event. It can be called many times * and in quick succession, hence the debouncing * * @param
shared/js/background/newtab-tracker-stats.js:178
↓ 26 callersFunctionconstructMockRemoteConfig
()
unit-test/background/remote-config.js:20
↓ 26 callersFunctionexpectState
(expectedSettings, expectedUpdateCallCount)
unit-test/background/declarative-net-request.js:234
↓ 25 callersMethodgetCohortName
* * @param {string} featureName * @param {string} subFeatureName * @returns {string | null}
shared/js/background/components/remote-config.js:148
↓ 25 callersFunctionrulesetEqual
* Generates a declarativeNetRequest ruleset for the given block list and * compares that to an expected ruleset. Optionally also compares the generat
packages/ddg2dnr/test/tds.js:101
↓ 24 callersMethoddelete
(id)
shared/js/background/tab-manager.js:82
↓ 24 callersFunctionupdateConfiguration
(configName, etag)
unit-test/background/declarative-net-request.js:143
↓ 22 callersFunctiongenerateExtensionConfigurationRuleset
* Generated an extension configuration declarativeNetRequest ruleset. * @param {object} extensionConfig * The extension configuration. * @param {
packages/ddg2dnr/lib/extensionConfiguration.js:26
↓ 22 callersMethodgetSetting
(key)
unit-test/background/remote-config.js:12
↓ 21 callersMethodsetLists
(lists)
shared/js/background/https.js:40
↓ 20 callersMethod_request
* Enqueue a request to the native app and wait for a response, * blocking subsequent callers until the request is complete. * If cacheKey an
shared/js/background/components/cpm-embedded-messaging.js:63
↓ 20 callersMethodclear
()
shared/js/background/classes/top-blocked.js:20
↓ 20 callersMethodpostMessage
* @param {number} tabId * @param {string} action * @param {any} message
shared/js/background/components/devtools.js:263
↓ 19 callersMethodlogMessage
(message)
shared/js/background/components/cpm-embedded-messaging.js:91
↓ 19 callersMethodmockRefreshEvent
(tabId, timeStamp = Date.now())
unit-test/background/metrics.js:8
↓ 19 callersFunctionstoreInLookup
* Stores the given values in the given lookup for the given key. Takes care to * create the values array for the key if it doesn't already exist. Han
packages/ddg2dnr/lib/utils.js:108
↓ 17 callersMethodcheckInService
* @param {string} host * @returns {Promise<Boolean>}
shared/js/background/https-service.js:71
↓ 17 callersFunctiongenerateTdsRuleset
* Converts a Tracker Blocking configuration into a declarativeNetRequest * ruleset that blocks/redirects requests to known trackers. * @param {objec
packages/ddg2dnr/lib/tds.js:491
↓ 16 callersFunctionexpectPixels
({ startUrl, adClickUrl, heuristicDomain = null, navigations = [], pol
unit-test/background/ad-click-attribution-policy.js:68
↓ 16 callersFunctionoverridePrivacyConfig
(networkContext, testConfigFilename)
integration-test/helpers/testConfig.js:9
↓ 16 callersMethodsetList
* This will allowlist any open tabs with the same domain * * @param {object} data * @param {allowlistName} data.list - name of the allo
shared/js/background/tab-manager.js:146
↓ 16 callersMethodupdateSetting
(key, value)
unit-test/background/remote-config.js:15
↓ 15 callersFunctionforExtensionLoaded
(context)
integration-test/helpers/backgroundWait.js:67
↓ 15 callersMethodget
()
packages/privacy-grade/src/classes/grade.js:177
↓ 15 callersMethodrequest
* Send a request to the native app and wait for a response. * * @param {string} method - The method name to call on the native side * @
shared/js/background/components/native-messaging.js:72
↓ 14 callersMethodcanRedirect
(request)
shared/js/background/classes/https-redirects.js:49
↓ 14 callersFunctiongetMainFrameRequest
()
unit-test/background/classes/https-redirects.js:26
↓ 14 callersMethodsendPixel
(pixelName, type, params)
shared/js/background/components/cpm-embedded-messaging.js:141
↓ 13 callersFunctiongetFromSessionStorage
(key)
shared/js/background/wrapper.js:248
↓ 13 callersFunctionloadReferenceTestJSONFile
(...pathParts)
packages/ddg2dnr/test/referenceTests.js:22
↓ 13 callersMethodonMetricTriggered
()
unit-test/background/metrics.js:4
↓ 13 callersMethodonUpdate
* @param {OnUpdatedCallback} cb
shared/js/background/components/resource-loader.js:207
↓ 13 callersMethodsort
(sortFunc)
shared/js/background/classes/top-blocked.js:16
↓ 13 callersMethodsyncToStorage
* Persist data into the extensions storage in the following format
shared/js/background/newtab-tracker-stats.js:204
↓ 12 callersMethoddata
* @param {number} [now] - optional timestamp to use as the current time * @return {PlainEntries}
shared/js/background/classes/tracker-stats.js:108
↓ 12 callersFunctionexpectAllowlistDenylistState
({ expectedDenylistedDomains, expectedUnprotectedTemporaryDomains, expecte
unit-test/background/declarative-net-request.js:515
↓ 12 callersMethodfirePixel
(eventName)
shared/js/background/components/cookie-prompt-management.js:612
↓ 12 callersMethodpack
* Every hour, pack up the current entries and start a new pack * @param {number} [now] optional timestamp to use as the current time
shared/js/background/classes/tracker-stats.js:71
↓ 12 callersMethodregisterRedirect
(request)
shared/js/background/classes/https-redirects.js:27
↓ 11 callersMethod_notify
* Enqueue a notification message to be sent to the native app. * @param {string} method * @param {Record<string, any>} params
shared/js/background/components/cpm-embedded-messaging.js:40
↓ 11 callersMethodcheckAutoconsentEnabledForSite
(url)
shared/js/background/components/cpm-embedded-messaging.js:126
↓ 11 callersMethodgetCohort
* Get the user's assigned cohort for this feature and subfeature * @param {string} featureName * @param {string} subFeatureName * @retu
shared/js/background/components/remote-config.js:138
↓ 11 callersMethodmarkExperimentEnrolled
* Mark that the user should be enrolled in the experiment for the given feature and sub feature. * * This will send the enrollment * @p
shared/js/background/components/abn-experiments.js:92
↓ 11 callersFunctionsendPixelRequest
(pixelName, params = {})
shared/js/background/pixels.js:18
↓ 11 callersFunctionsetToSessionStorage
(key, data)
shared/js/background/wrapper.js:227
↓ 11 callersMethodshouldDisplay
* Check if the toggle report UI flow should been displayed display for the * currently focused tab. * * @returns {Promise<boolean>}
shared/js/background/components/toggle-reports.js:170
↓ 10 callersMethodaddRules
* Load the given declarativeNetRequest rules into the test * extension. * @param {object[]} rules * The rules to add.
packages/ddg2dnr/puppeteerInterface.js:66
↓ 10 callersMethodcheckForUpdates
(force)
shared/js/background/components/resource-loader.js:86
↓ 10 callersMethodcheckInCache
* @param {string} host * @returns {Boolean|null}
shared/js/background/https-service.js:55
↓ 10 callersMethodcheckSubfeatureEnabled
(subfeatureName)
shared/js/background/components/cpm-embedded-messaging.js:131
↓ 10 callersFunctionexpectUnmodified
(desc)
integration-test/storage-blocking.spec.js:39
↓ 10 callersFunctiontoggleUserAllowlistDomain
(domain, enable)
shared/js/background/dnr-user-allowlist.js:62
↓ 9 callersFunctiongenerateCookieBlockingRuleset
* Build HTTP cookie blocking rules from the blocklist and cookie configuration * @param {import('./utils').TDS} tds The tracker blocklist * @param {
packages/ddg2dnr/lib/cookies.js:12
↓ 9 callersFunctiongenerateSmarterEncryptionRuleset
* Converts a list of HTTPS enabled domains into a declarativeNetRequest ruleset * that upgrades HTTP requests to HTTPS for those domains. * @param {
packages/ddg2dnr/lib/smarterEncryption.js:52
↓ 9 callersFunctiongetMatchDetails
(ruleId)
shared/js/background/dnr-utils.js:106
↓ 9 callersMethodgetOrRestoreTab
(tabId)
shared/js/background/tab-manager.js:117
↓ 9 callersMethodmodify
* Modify resource data in-place * @param {(data: any) => any} func
shared/js/background/components/resource-loader.js:240
↓ 8 callersMethodaddToTrackers
* @param t * @param {string} baseDomain * @param {string} url * @returns {Tracker}
shared/js/background/classes/tab.js:376
↓ 8 callersMethodcanUpgradeUrl
* @param {string} url either domain (example.com) or a full URL (http://example.com/about) * @returns {null|boolean|Promise<boolean>} returns tru
shared/js/background/https.js:81
↓ 8 callersFunctioncastDNREnum
* Helper to cast JavaScript strings to the TypeScript enum types expected by * @types/chrome for declarativeNetRequest rules. Does not change the pro
packages/ddg2dnr/lib/utils.js:133
↓ 8 callersMethodcheckAutoconsentSettingEnabled
()
shared/js/background/components/cpm-embedded-messaging.js:121
↓ 8 callersMethoddeserialize
* @param {object} params * @param {number} params.totalCount * @param {Pack} params.current * @param {Pack[]} params.packs
shared/js/background/classes/tracker-stats.js:155
↓ 8 callersFunctionensureGPCHeaderRule
(config = null)
shared/js/background/dnr-gpc.js:13
↓ 8 callersFunctiongetDomain
(url)
packages/privacy-grade/src/utils.js:17
↓ 8 callersFunctiongetFireButtonHandle
* @param {*} backgroundPage * @returns {Promise<import('@playwright/test').JSHandle>}
integration-test/fire-button.spec.js:72
↓ 8 callersFunctionmakeInitMessage
()
unit-test/background/cookie-prompt-management.js:50
↓ 8 callersFunctionmakeSender
({ tabId = 1, frameId = 0, tabUrl = 'https://example.com/page', frameUrl = undefined } = {})
unit-test/background/cookie-prompt-management.js:39
↓ 8 callersMethodsetCohort
* * @param {string} featureName * @param {string} subFeatureName * @param {ChosenCohort | null} cohort
shared/js/background/components/remote-config.js:158
↓ 8 callersMethodsubmitBrokenSiteReport
* Only the dashboard sends this message, so we import the types from there. * @param {import('@duckduckgo/privacy-dashboard/schema/__generated__/
shared/js/background/components/dashboard-messaging.js:64
↓ 8 callersFunctionsummariseYouTubeRequests
* @param {import('../helpers/requests').LoggedRequestDetails[]} requests
integration-test/click-to-load-youtube.spec.js:16
↓ 7 callersFunctionassertCookieAllowed
(results, testName)
integration-test/storage-blocking.spec.js:93
↓ 7 callersFunctionchoseCohort
(cohorts, rng)
shared/js/background/components/remote-config.js:312
↓ 7 callersFunctionconstructMockComponents
()
unit-test/background/abn-framework.js:16
↓ 7 callersMethoddelete
* Used for removing the stored tab state. * @param {number} tabId
shared/js/background/classes/tab-state.js:138
↓ 7 callersFunctiongetFeatureSettings
(featureName, config = tdsStorage.config)
shared/js/background/utils.js:410
↓ 7 callersMethodgetTrackerData
* @param {string} urlToCheck * @param {string} siteUrl * @param {RequestExpression} request * @param {Set<string>} [supportedCustomRule
packages/privacy-grade/src/classes/trackers.js:316
↓ 7 callersFunctionlogPageRequests
(_backgroundPage, page, requests, requestFilter, transform, postTransformFilter)
integration-test/helpers/requests.js:32
next →1–100 of 952, ranked by callers