Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/EFForg/privacybadger
/ functions
Functions
471 in github.com/EFForg/privacybadger
⨍
Functions
471
◇
Types & classes
21
↓ 152 callers
Method
load_url
Load a URL and wait before returning.
tests/selenium/pbtest.py:378
↓ 72 callers
Method
find_el_by_css
(self, css_selector, visible_only=True, timeout=SEL_DEFAULT_WAIT_TIMEOUT)
tests/selenium/pbtest.py:407
↓ 40 callers
Method
wait_for_script
Variant of execute_script/execute_async_script that keeps rerunning the script until it returns True.
tests/selenium/pbtest.py:434
↓ 36 callers
Function
extractHostFromURL
* Extracts host name from a URL.
src/lib/basedomain.js:232
↓ 34 callers
Function
callback
()
src/js/options.js:799
↓ 34 callers
Method
open_popup
Show the PB popup as a new tab. If Selenium would let us just programmatically launch an extension from its icon, we wouldn't need th
tests/selenium/pbtest.py:598
↓ 33 callers
Function
done
()
src/js/storage.js:634
↓ 32 callers
Method
block_domain
(self, domain)
tests/selenium/pbtest.py:539
↓ 32 callers
Function
getBaseDomain
* Returns base domain for specified host based on Public Suffix List. * @param {String} hostname The name of the host to get the base domain for * @
src/lib/basedomain.js:80
↓ 31 callers
Function
log
* Log a message to the console if debugging is enabled
src/js/bootstrap.js:35
↓ 30 callers
Method
get
()
src/data/web_accessible_resources/fingerprintjs3.js:18
↓ 20 callers
Method
assert_load
(self)
tests/selenium/content_filtering_test.py:38
↓ 18 callers
Method
open_window
(self)
tests/selenium/pbtest.py:371
↓ 15 callers
Method
clear_tracker_data
(self)
tests/selenium/pbtest.py:575
↓ 14 callers
Method
cookieblock_domain
(self, domain)
tests/selenium/pbtest.py:542
↓ 12 callers
Method
assert_block
(self)
tests/selenium/content_filtering_test.py:33
↓ 12 callers
Method
assert_widget
(self, kind="type3")
tests/selenium/widgets_test.py:84
↓ 11 callers
Method
disable_badger_on_site
(self, url)
tests/selenium/pbtest.py:555
↓ 10 callers
Method
get_domain_slider_state
(self, domain)
tests/selenium/pbtest.py:570
↓ 10 callers
Method
select_domain_list_tab
(self)
tests/selenium/options_test.py:39
↓ 10 callers
Method
set_user_action
Adds or modifies the action_map entry for `domain`, setting userAction to "user_" + `action`.
tests/selenium/pbtest.py:515
↓ 10 callers
Method
switch_to_window_with_url
Point the driver to the first window that matches this url.
tests/selenium/pbtest.py:461
↓ 9 callers
Method
get_badger_storage
(self, store_name)
tests/selenium/pbtest.py:583
↓ 9 callers
Method
load
()
src/data/web_accessible_resources/fingerprintjs3.js:15
↓ 9 callers
Method
load_options_page
(self)
tests/selenium/options_test.py:45
↓ 9 callers
Method
wait_for_and_switch_to_frame
(self, selector, timeout=SEL_DEFAULT_WAIT_TIMEOUT)
tests/selenium/pbtest.py:456
↓ 9 callers
Method
wait_for_any_text
(self, selector, timeout=SEL_DEFAULT_WAIT_TIMEOUT)
tests/selenium/pbtest.py:447
↓ 8 callers
Method
assert_no_replacement
(self, widget_name=None)
tests/selenium/widgets_test.py:150
↓ 8 callers
Method
assert_replacement
(self, widget_name=None)
tests/selenium/widgets_test.py:112
↓ 7 callers
Method
add_domain
Adds or modifies the action_map entry for `domain`, setting heuristicAction to `action`.
tests/selenium/pbtest.py:527
↓ 7 callers
Function
get_ylist
()
src/tests/tests/yellowlist.js:6
↓ 7 callers
Function
retry_until
Execute function `fun` until either its return is truthy (or if `tester` is set, until the result of calling `tester` with `fun`'s return is
tests/selenium/pbtest.py:281
↓ 7 callers
Method
txt_by_css
Find an element by CSS selector and return its text.
tests/selenium/pbtest.py:402
↓ 6 callers
Function
_set_override
* Sets a browser setting if Privacy Badger is allowed to set it.
src/js/background.js:163
↓ 6 callers
Method
assert_navigator_gpc_unset
(self, msg="")
tests/selenium/dnt_test.py:58
↓ 6 callers
Function
checkAction
* Determines the action to take on a specific FQDN. * * @param {Number} tab_id * @param {String} tab_host * @param {String} request_host * @param
src/js/webrequest.js:809
↓ 6 callers
Method
close_window_with_url
(self, url, max_tries=5)
tests/selenium/pbtest.py:485
↓ 6 callers
Function
getSurrogateUri
* Blocking tracking scripts (trackers) can cause parts of webpages to break. * Surrogate scripts are dummy pieces of JavaScript meant to supply just
src/js/surrogates.js:55
↓ 6 callers
Method
get_snitch_map_for
(self, domain)
tests/selenium/supercookie_test.py:13
↓ 6 callers
Method
get_tracker_state
Parse the UI to group all third party domains into their respective action states.
tests/selenium/pbtest.py:657
↓ 6 callers
Method
switch_to_frame
(self, selector)
tests/selenium/widgets_test.py:81
↓ 6 callers
Method
tracking_user_overwrite
Ensure preferences are persisted when a user overwrites PB's default behaviour for a domain.
tests/selenium/options_test.py:179
↓ 5 callers
Function
apply
(obj, context, args)
src/js/contentscripts/fingerprinting.js:51
↓ 5 callers
Function
getInitiatorUrl
* Looks up the top-level document URL for a given request/response * from metadata on the request/response object. * * Returns null if we already a
src/lib/webrequestUtils.js:65
↓ 5 callers
Function
unblockTracker
* Messages the background page to temporarily allow domains associated with a * given replacement widget. * Calls the provided callback function upo
src/js/contentscripts/socialwidgets.js:857
↓ 4 callers
Function
_make_id
(prefix)
src/js/contentscripts/socialwidgets.js:399
↓ 4 callers
Function
_populate
(row)
src/js/options.js:889
↓ 4 callers
Method
activate_widget
(self, widget_name=None, once=True)
tests/selenium/widgets_test.py:160
↓ 4 callers
Method
add_site_override
(self, domain, site_domain)
tests/selenium/pbtest.py:545
↓ 4 callers
Function
forgetTab
* Cleans up tab-specific data. * * @param {Number} tab_id the ID of the tab * @param {Boolean} [is_reload] whether the page is being reloaded
src/js/webrequest.js:795
↓ 4 callers
Function
get_browser_type
(string)
tests/selenium/pbtest.py:46
↓ 4 callers
Function
hasOwn
(obj, prop)
src/js/contentscripts/socialwidgets.js:58
↓ 4 callers
Method
init_sw_page
(self)
tests/selenium/service_workers_test.py:31
↓ 4 callers
Function
ipAddressToNumber
* Converts an IP address to a number. If given input is not a valid IP address * then 0 is returned. * @param {String} ip The IP address to convert
src/lib/basedomain.js:127
↓ 4 callers
Method
load_ga_js_fixture
(self, cache_workaround=False, timeout=12)
tests/selenium/surrogates_test.py:23
↓ 4 callers
Function
parsed
()
src/tests/tests/utils.js:215
↓ 4 callers
Function
populateVisibleRows
* Populates domain row contents for each visible, not yet populated row * in the list of tracking domains.
src/js/options.js:883
↓ 4 callers
Function
reloadDisabledSites
()
src/js/options.js:514
↓ 4 callers
Method
set_dnt
(self, domain)
tests/selenium/pbtest.py:497
↓ 4 callers
Function
updatePrivacyOverride
* Updates privacy overrides in Badger storage and in browser settings.
src/js/options.js:1018
↓ 4 callers
Function
updateSliders
* Updates the list of tracking domains in response to user actions. * * For example, moving the slider for example.com should move the sliders * fo
src/js/options.js:1077
↓ 4 callers
Method
wait_for_sliders
(self, visible=True, timeout=5)
tests/selenium/popup_test.py:17
↓ 3 callers
Function
_createReplacementElementCallback
(widget, trackerElem, callback)
src/js/contentscripts/socialwidgets.js:157
↓ 3 callers
Function
_hideNag
()
src/js/popup.js:84
↓ 3 callers
Method
check_dnt
(self, domain)
tests/selenium/pbtest.py:506
↓ 3 callers
Function
clearSavedErrorText
()
src/js/popup.js:318
↓ 3 callers
Function
closeOverlay
* Close the error reporting overlay
src/js/popup.js:328
↓ 3 callers
Function
count
(string, substring)
src/lib/basedomain.js:61
↓ 3 callers
Function
fn
()
src/js/contentscripts/clobberlocalstorage.js:65
↓ 3 callers
Function
is_checked
(input_action, action)
src/js/htmlutils.js:112
↓ 3 callers
Function
replaceIndividualButton
* Replaces buttons/widgets in the DOM.
src/js/contentscripts/socialwidgets.js:805
↓ 3 callers
Function
requestReplacement
()
src/data/web_accessible_resources/twitter.js:2
↓ 3 callers
Function
restoreSuppressed
()
src/js/popup.js:637
↓ 3 callers
Function
setupBadgerStorage
(badger)
src/tests/tests/background.js:20
↓ 3 callers
Function
showOverlay
(overlay_id)
src/js/popup.js:980
↓ 3 callers
Function
stripLineAndColumnNumbers
* Strip away the line and column number (from stack trace urls) * @param script_url The stack trace url to strip * @returns {String} the pur
src/js/contentscripts/fingerprinting.js:155
↓ 3 callers
Function
updateSummary
* Displays list of all tracking domains along with toggle controls.
src/js/options.js:663
↓ 3 callers
Method
wait_for_text
(self, selector, text, timeout=SEL_DEFAULT_WAIT_TIMEOUT)
tests/selenium/pbtest.py:451
↓ 2 callers
Function
_match_prefix
(url, hostname, tokens)
src/js/surrogates.js:23
↓ 2 callers
Function
_newActionMapObject
* @private
src/js/storage.js:684
↓ 2 callers
Function
_notify
(ename)
src/js/storage.js:929
↓ 2 callers
Function
_setSeenComic
(cb)
src/js/popup.js:71
↓ 2 callers
Function
_setSeenLearningPrompt
(cb)
src/js/popup.js:78
↓ 2 callers
Function
_sync
* @param {BadgerStorage} badgerStore * @param {Function} [callback]
src/js/storage.js:982
↓ 2 callers
Function
_update
(tab)
src/js/background.js:950
↓ 2 callers
Method
assert_widget_blocked
(self)
tests/selenium/widgets_test.py:129
↓ 2 callers
Function
checkCookieblocking
(assert)
src/tests/tests/storage.js:773
↓ 2 callers
Function
delay
(ms)
src/tests/tests/utils.js:90
↓ 2 callers
Function
doCallback
(item)
src/data/web_accessible_resources/google_analytics.js:62
↓ 2 callers
Function
escape_html
(unsafe)
src/js/htmlutils.js:24
↓ 2 callers
Function
filterDomains
* Filters the list of tracking domains for display on the options page. * * @param {Object} domains The starting set of domains to be filtered. *
src/lib/options.js:37
↓ 2 callers
Function
float_fmt
(num)
src/js/bootstrap.js:25
↓ 2 callers
Function
getChromeInitiator
* Given a URL, returns a substring matching * webRequest's details.initiator in Chrome. * * @param {String} url * * @returns {String}
src/lib/basedomain.js:338
↓ 2 callers
Function
getManagedStorage
(callback)
src/js/storage.js:82
↓ 2 callers
Function
getScore
(action)
src/js/storage.js:461
↓ 2 callers
Function
getWarSecret
* Generates a token for a given tab ID/frame ID/resource URL combination. * * @param {Number} tab_id * @param {Number} frame_id * @param {String}
src/js/webrequest.js:233
↓ 2 callers
Function
getWelcomeTab
(callback)
src/js/background.js:386
↓ 2 callers
Function
getWidgetDomains
* @param {String} widget_name * @returns {Array<String>|Boolean} the list of associated domains or false
src/js/webrequest.js:1022
↓ 2 callers
Method
get_first_tab_data
Returns the top-level document's URL/host for the first tab.
tests/selenium/service_workers_test.py:21
↓ 2 callers
Function
get_next_update_time
()
scripts/apply_effdntlist.py:30
next →
1–100 of 471, ranked by callers