MCPcopy Index your code
hub / github.com/ClearURLs/Addon / setText

Function setText

core_js/popup.js:209–224  ·  view source on GitHub ↗

* Set the text for the UI.

()

Source from the content-addressed store, hash-verified

207* Set the text for the UI.
208*/
209function setText()
210{
211 injectText('loggingPage','popup_html_log_head');
212 injectText('reset_counter_btn','popup_html_statistics_reset_button');
213 injectText('rules_status_head','popup_html_rules_status_head');
214 injectText('statistics_percentage','popup_html_statistics_percentage');
215 injectText('statistics_blocked','popup_html_statistics_blocked');
216 injectText('statistics_elements','popup_html_statistics_elements');
217 injectText('statistics_head','popup_html_statistics_head');
218 injectText('configs_switch_badges','popup_html_configs_switch_badges');
219 injectText('configs_switch_log','popup_html_configs_switch_log');
220 injectText('configs_switch_filter','popup_html_configs_switch_filter');
221 injectText('configs_head','popup_html_configs_head');
222 injectText('configs_switch_statistics','configs_switch_statistics');
223 document.getElementById('donate').title = translate('donate_button');
224}
225
226/**
227* Helper function to inject the translated text and tooltip.

Callers 1

popup.jsFile · 0.70

Calls 2

injectTextFunction · 0.70
translateFunction · 0.70

Tested by

no test coverage detected