From c7d9128559ed9526914c9be5bb461445fde5866a Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Fri, 19 Feb 2021 15:09:33 -0500 Subject: [PATCH] remove 'notranslate' 8 (#2520) --- files/en-us/games/anatomy/index.html | 16 +-- .../2d_collision_detection/index.html | 14 +-- .../index.html | 24 ++-- .../3d_collision_detection/index.html | 2 +- .../3d_on_the_web/glsl_shaders/index.html | 20 +-- .../techniques/3d_on_the_web/webvr/index.html | 6 +- .../games/techniques/async_scripts/index.html | 10 +- .../techniques/audio_for_web_games/index.html | 22 ++-- .../desktop_with_gamepad/index.html | 40 +++--- .../index.html | 42 +++---- .../mobile_touch/index.html | 20 +-- .../control_mechanisms/other/index.html | 18 +-- .../controls_gamepad_api/index.html | 20 +-- .../index.html | 6 +- .../animations_and_tweens/index.html | 12 +- .../bounce_off_the_walls/index.html | 4 +- .../build_the_brick_field/index.html | 18 +-- .../buttons/index.html | 10 +- .../collision_detection/index.html | 4 +- .../extra_lives/index.html | 14 +-- .../game_over/index.html | 4 +- .../initialize_the_framework/index.html | 2 +- .../index.html | 6 +- .../move_the_ball/index.html | 2 +- .../physics/index.html | 10 +- .../player_paddle_and_controls/index.html | 22 ++-- .../randomizing_gameplay/index.html | 2 +- .../scaling/index.html | 4 +- .../the_score/index.html | 6 +- .../win_the_game/index.html | 2 +- .../bounce_off_the_walls/index.html | 14 +-- .../build_the_brick_field/index.html | 12 +- .../collision_detection/index.html | 12 +- .../index.html | 10 +- .../finishing_up/index.html | 18 +-- .../game_over/index.html | 8 +- .../mouse_controls/index.html | 4 +- .../move_the_ball/index.html | 16 +-- .../paddle_and_keyboard_controls/index.html | 16 +-- .../track_the_score_and_win/index.html | 10 +- .../index.html | 56 ++++----- files/en-us/glossary/array/index.html | 2 +- files/en-us/glossary/attribute/index.html | 2 +- files/en-us/glossary/cacheable/index.html | 6 +- files/en-us/glossary/call_stack/index.html | 2 +- .../index.html | 2 +- files/en-us/glossary/csrf/index.html | 2 +- files/en-us/glossary/css/index.html | 2 +- .../effective_connection_type/index.html | 2 +- files/en-us/glossary/entity_header/index.html | 2 +- files/en-us/glossary/falsy/index.html | 4 +- .../glossary/first-class_function/index.html | 10 +- files/en-us/glossary/function/index.html | 10 +- files/en-us/glossary/global_object/index.html | 8 +- files/en-us/glossary/hoisting/index.html | 12 +- files/en-us/glossary/http_header/index.html | 6 +- files/en-us/glossary/null/index.html | 2 +- files/en-us/glossary/payload_body/index.html | 4 +- files/en-us/glossary/php/index.html | 6 +- .../glossary/preflight_request/index.html | 4 +- files/en-us/glossary/prerender/index.html | 2 +- files/en-us/glossary/primitive/index.html | 2 +- .../en-us/glossary/quality_values/index.html | 4 +- files/en-us/glossary/recursion/index.html | 2 +- .../en-us/glossary/request_header/index.html | 2 +- .../en-us/glossary/response_header/index.html | 2 +- files/en-us/glossary/rsync/index.html | 4 +- files/en-us/glossary/semantics/index.html | 4 +- files/en-us/glossary/truthy/index.html | 2 +- .../css_and_javascript/index.html | 28 ++--- .../en-us/learn/accessibility/html/index.html | 44 +++---- .../learn/accessibility/mobile/index.html | 6 +- .../learn/accessibility/multimedia/index.html | 24 ++-- .../accessibility/wai-aria_basics/index.html | 34 ++--- .../upload_files_to_a_web_server/index.html | 4 +- .../index.html | 12 +- .../what_is_a_domain_name/index.html | 4 +- .../backgrounds_and_borders/index.html | 24 ++-- .../building_blocks/debugging_css/index.html | 4 +- .../css/building_blocks/organizing/index.html | 40 +++--- .../css/building_blocks/selectors/index.html | 26 ++-- .../index.html | 6 +- .../type_class_and_id_selectors/index.html | 4 +- .../building_blocks/styling_tables/index.html | 16 +-- .../building_blocks/the_box_model/index.html | 6 +- .../values_and_units/index.html | 2 +- .../learn/css/css_layout/flexbox/index.html | 36 +++--- .../learn/css/css_layout/floats/index.html | 50 ++++---- .../learn/css/css_layout/grids/index.html | 60 ++++----- .../css/css_layout/media_queries/index.html | 32 ++--- .../css/css_layout/positioning/index.html | 56 ++++----- .../css_layout/responsive_design/index.html | 24 ++-- .../supporting_older_browsers/index.html | 12 +- .../how_css_is_structured/index.html | 54 ++++---- .../css/first_steps/how_css_works/index.html | 16 +-- .../css/first_steps/what_is_css/index.html | 4 +- .../css/styling_text/fundamentals/index.html | 54 ++++---- .../css/styling_text/styling_links/index.html | 22 ++-- .../css/styling_text/styling_lists/index.html | 26 ++-- .../css/styling_text/web_fonts/index.html | 10 +- .../forms/advanced_form_styling/index.html | 38 +++--- .../basic_native_form_controls/index.html | 26 ++-- .../learn/forms/form_validation/index.html | 36 +++--- .../index.html | 42 +++---- .../learn/forms/html5_input_types/index.html | 30 ++--- .../index.html | 2 +- .../index.html | 20 +-- .../index.html | 16 +-- .../learn/forms/styling_web_forms/index.html | 22 ++-- .../learn/forms/ui_pseudo-classes/index.html | 40 +++--- .../learn/forms/your_first_form/index.html | 16 +-- .../css_basics/index.html | 22 ++-- .../dealing_with_files/index.html | 2 +- .../html_basics/index.html | 28 ++--- .../javascript_basics/index.html | 48 ++++---- .../the_web_and_web_standards/index.html | 8 +- .../advanced_text_formatting/index.html | 48 ++++---- .../creating_hyperlinks/index.html | 30 ++--- .../debugging_html/index.html | 8 +- .../document_and_website_structure/index.html | 10 +- .../getting_started/index.html | 58 ++++----- .../html_text_fundamentals/index.html | 62 +++++----- .../the_head_metadata_in_html/index.html | 28 ++--- .../index.html | 18 +-- .../images_in_html/index.html | 30 ++--- .../other_embedding_technologies/index.html | 12 +- .../video_and_audio_content/index.html | 12 +- .../en-us/learn/html/tables/basics/index.html | 16 +-- files/en-us/learn/index.html | 6 +- .../asynchronous/async_await/index.html | 46 +++---- .../choosing_the_right_approach/index.html | 22 ++-- .../asynchronous/introducing/index.html | 22 ++-- .../asynchronous/promises/index.html | 56 ++++----- .../timeouts_and_intervals/index.html | 64 +++++----- .../building_blocks/events/index.html | 54 ++++---- .../building_blocks/functions/index.html | 64 +++++----- .../building_blocks/image_gallery/index.html | 4 +- .../building_blocks/looping_code/index.html | 52 ++++---- .../building_blocks/return_values/index.html | 16 +-- .../client-side_storage/index.html | 58 ++++----- .../drawing_graphics/index.html | 88 ++++++------- .../fetching_data/index.html | 38 +++--- .../introduction/index.html | 20 +-- .../manipulating_documents/index.html | 40 +++--- .../video_and_audio_apis/index.html | 36 +++--- .../first_steps/a_first_splash/index.html | 56 ++++----- .../javascript/first_steps/math/index.html | 40 +++--- .../silly_story_generator/index.html | 2 +- .../useful_string_methods/index.html | 44 +++---- .../first_steps/variables/index.html | 56 ++++----- .../first_steps/what_is_javascript/index.html | 36 +++--- .../first_steps/what_went_wrong/index.html | 36 +++--- .../adding_bouncing_balls_features/index.html | 4 +- .../javascript/objects/inheritance/index.html | 42 +++---- .../learn/javascript/objects/json/index.html | 32 ++--- .../objects/object-oriented_js/index.html | 32 ++--- .../objects/object_prototypes/index.html | 38 +++--- .../learning_and_getting_help/index.html | 6 +- .../apache_configuration_htaccess/index.html | 64 +++++----- .../server-side/django/admin_site/index.html | 30 ++--- .../django/authentication/index.html | 68 +++++----- .../server-side/django/deployment/index.html | 80 ++++++------ .../django/development_environment/index.html | 48 ++++---- .../django/django_assessment_blog/index.html | 4 +- .../learn/server-side/django/forms/index.html | 38 +++--- .../django/generic_views/index.html | 52 ++++---- .../server-side/django/home_page/index.html | 30 ++--- .../server-side/django/models/index.html | 38 +++--- .../server-side/django/sessions/index.html | 12 +- .../django/skeleton_website/index.html | 38 +++--- .../server-side/django/testing/index.html | 64 +++++----- .../web_application_security/index.html | 6 +- .../first_steps/web_frameworks/index.html | 12 +- .../first_steps/website_security/index.html | 6 +- .../node_server_without_framework/index.html | 16 +-- .../ember_conditional_footer/index.html | 42 +++---- .../ember_getting_started/index.html | 18 +-- .../index.html | 42 +++---- .../ember_resources/index.html | 12 +- .../ember_routing/index.html | 40 +++--- .../index.html | 22 ++-- .../introduction/index.html | 10 +- .../main_features/index.html | 36 +++--- .../react_accessibility/index.html | 40 +++--- .../react_components/index.html | 46 +++---- .../react_getting_started/index.html | 42 +++---- .../index.html | 70 +++++------ .../index.html | 44 +++---- .../react_resources/index.html | 2 +- .../react_todo_list_beginning/index.html | 14 +-- .../svelte_components/index.html | 58 ++++----- .../svelte_deployment_next/index.html | 28 ++--- .../svelte_getting_started/index.html | 32 ++--- .../index.html | 116 +++++++++--------- .../svelte_stores/index.html | 68 +++++----- .../svelte_todo_list_beginning/index.html | 34 ++--- .../svelte_typescript/index.html | 108 ++++++++-------- .../svelte_variables_props/index.html | 60 ++++----- .../vue_computed_properties/index.html | 12 +- .../vue_conditional_rendering/index.html | 30 ++--- .../vue_first_component/index.html | 36 +++--- .../vue_getting_started/index.html | 22 ++-- .../vue_methods_events_models/index.html | 40 +++--- .../vue_refs_focus_management/index.html | 20 +-- .../vue_rendering_lists/index.html | 14 +-- .../vue_styling/index.html | 16 +-- .../accessibility/index.html | 10 +- .../automated_testing/index.html | 72 +++++------ .../javascript/index.html | 34 ++--- .../index.html | 98 +++++++-------- .../command_line/index.html | 46 +++---- .../introducing_complete_toolchain/index.html | 34 ++--- .../package_management/index.html | 48 ++++---- .../mdn/at_ten/history_of_mdn/index.html | 4 +- .../index.html | 78 ++++++------ .../sidebars/index.html | 8 +- .../index.html | 6 +- .../guidelines/code_guidelines/css/index.html | 32 ++--- .../code_guidelines/general/index.html | 24 ++-- .../code_guidelines/html/index.html | 36 +++--- .../code_guidelines/javascript/index.html | 86 ++++++------- .../code_guidelines/shell/index.html | 2 +- .../mdn/guidelines/css_style_guide/index.html | 26 ++-- files/en-us/mdn/kitchensink/index.html | 4 +- .../mdn/structures/code_examples/index.html | 2 +- .../compatibility_tables/index.html | 44 +++---- .../mdn/structures/live_samples/index.html | 10 +- files/en-us/mdn/structures/macros/index.html | 2 +- .../index.html | 2 +- .../index.html | 2 +- .../api_event_subpage_template/index.html | 2 +- .../api_landing_page_template/index.html | 2 +- .../api_method_subpage_template/index.html | 2 +- .../api_property_subpage_template/index.html | 2 +- .../api_reference_page_template/index.html | 2 +- .../page_types/aria_page_template/index.html | 4 +- .../css_property_page_template/index.html | 6 +- .../css_selector_page_template/index.html | 6 +- .../html_element_page_template/index.html | 2 +- .../http_header_page_template/index.html | 2 +- .../svg_element_page_template/index.html | 2 +- .../mdn/structures/quicklinks/index.html | 2 +- .../mdn/structures/syntax_sections/index.html | 32 ++--- files/en-us/mdn/tools/kumascript/index.html | 46 +++---- .../en-us/mdn/tools/sample_server/index.html | 4 +- files/en-us/mdn/tools/search/index.html | 10 +- .../add_a_button_to_the_toolbar/index.html | 4 +- .../anatomy_of_a_webextension/index.html | 6 +- .../webextensions/api/alarms/clear/index.html | 4 +- .../api/alarms/clearall/index.html | 2 +- .../api/alarms/create/index.html | 8 +- .../webextensions/api/alarms/get/index.html | 2 +- .../api/alarms/getall/index.html | 2 +- .../api/alarms/onalarm/index.html | 2 +- .../api/bookmarks/create/index.html | 2 +- .../api/bookmarks/export/index.html | 2 +- .../api/bookmarks/get/index.html | 2 +- .../api/bookmarks/getchildren/index.html | 2 +- .../api/bookmarks/getrecent/index.html | 2 +- .../api/bookmarks/getsubtree/index.html | 2 +- .../api/bookmarks/gettree/index.html | 2 +- .../webextensions/api/bookmarks/index.html | 2 +- .../api/bookmarks/move/index.html | 2 +- .../api/bookmarks/onchanged/index.html | 2 +- .../bookmarks/onchildrenreordered/index.html | 2 +- .../api/bookmarks/oncreated/index.html | 2 +- .../api/bookmarks/onimportbegan/index.html | 2 +- .../api/bookmarks/onimportended/index.html | 2 +- .../api/bookmarks/onmoved/index.html | 2 +- .../api/bookmarks/onremoved/index.html | 2 +- .../api/bookmarks/remove/index.html | 2 +- .../api/bookmarks/removetree/index.html | 2 +- .../api/bookmarks/search/index.html | 4 +- .../api/bookmarks/update/index.html | 2 +- .../api/browseraction/disable/index.html | 4 +- .../api/browseraction/enable/index.html | 2 +- .../getbadgebackgroundcolor/index.html | 2 +- .../api/browseraction/getbadgetext/index.html | 2 +- .../getbadgetextcolor/index.html | 2 +- .../api/browseraction/getpopup/index.html | 2 +- .../api/browseraction/gettitle/index.html | 2 +- .../api/browseraction/isenabled/index.html | 4 +- .../api/browseraction/onclicked/index.html | 2 +- .../api/browseraction/openpopup/index.html | 4 +- .../setbadgebackgroundcolor/index.html | 4 +- .../api/browseraction/setbadgetext/index.html | 2 +- .../setbadgetextcolor/index.html | 4 +- .../api/browseraction/seticon/index.html | 6 +- .../api/browseraction/setpopup/index.html | 2 +- .../api/browseraction/settitle/index.html | 2 +- .../allowpopupsforuserevents/index.html | 4 +- .../browsersettings/cacheenabled/index.html | 4 +- .../contextmenushowevent/index.html | 2 +- .../ftpprotocolenabled/index.html | 2 +- .../homepageoverride/index.html | 2 +- .../imageanimationbehavior/index.html | 2 +- .../newtabpageoverride/index.html | 2 +- .../browsersettings/newtabposition/index.html | 2 +- .../openbookmarksinnewtabs/index.html | 2 +- .../opensearchresultsinnewtabs/index.html | 2 +- .../openurlbarresultsinnewtabs/index.html | 2 +- .../overridedocumentcolors/index.html | 2 +- .../usedocumentfonts/index.html | 2 +- .../webnotificationsdisabled/index.html | 2 +- .../browsersettings/zoomfullpage/index.html | 2 +- .../zoomsitespecific/index.html | 2 +- .../browsingdata/removaloptions/index.html | 2 +- .../api/browsingdata/remove/index.html | 4 +- .../api/browsingdata/removecache/index.html | 2 +- .../api/browsingdata/removecookies/index.html | 4 +- .../browsingdata/removedownloads/index.html | 4 +- .../browsingdata/removeformdata/index.html | 4 +- .../api/browsingdata/removehistory/index.html | 4 +- .../removelocalstorage/index.html | 2 +- .../browsingdata/removepasswords/index.html | 4 +- .../browsingdata/removeplugindata/index.html | 4 +- .../api/browsingdata/settings/index.html | 2 +- .../api/captiveportal/index.html | 2 +- .../onconnectivityavailable/index.html | 2 +- .../captiveportal/onstatechanged/index.html | 2 +- .../api/clipboard/setimagedata/index.html | 4 +- .../api/commands/getall/index.html | 2 +- .../api/commands/oncommand/index.html | 2 +- .../api/commands/reset/index.html | 2 +- .../api/commands/update/index.html | 2 +- .../api/contentscripts/register/index.html | 4 +- .../registeredcontentscript/index.html | 2 +- .../unregister/index.html | 4 +- .../contextualidentities/create/index.html | 2 +- .../api/contextualidentities/get/index.html | 2 +- .../contextualidentities/oncreated/index.html | 2 +- .../contextualidentities/onremoved/index.html | 2 +- .../contextualidentities/onupdated/index.html | 2 +- .../api/contextualidentities/query/index.html | 4 +- .../contextualidentities/remove/index.html | 2 +- .../contextualidentities/update/index.html | 2 +- .../api/cookies/cookie/index.html | 2 +- .../api/cookies/cookiestore/index.html | 4 +- .../webextensions/api/cookies/get/index.html | 2 +- .../api/cookies/getall/index.html | 2 +- .../api/cookies/getallcookiestores/index.html | 2 +- .../api/cookies/onchanged/index.html | 2 +- .../api/cookies/onchangedcause/index.html | 2 +- .../api/cookies/remove/index.html | 2 +- .../webextensions/api/cookies/set/index.html | 2 +- .../devtools/inspectedwindow/eval/index.html | 6 +- .../inspectedwindow/reload/index.html | 2 +- .../devtools/inspectedwindow/tabid/index.html | 4 +- .../api/devtools/network/gethar/index.html | 2 +- .../api/devtools/network/index.html | 2 +- .../devtools/network/onnavigated/index.html | 2 +- .../network/onrequestfinished/index.html | 6 +- .../api/devtools/panels/create/index.html | 2 +- .../createsidebarpane/index.html | 2 +- .../onselectionchanged/index.html | 2 +- .../devtools/panels/extensionpanel/index.html | 2 +- .../extensionsidebarpane/onhidden/index.html | 2 +- .../extensionsidebarpane/onshown/index.html | 2 +- .../setexpression/index.html | 2 +- .../extensionsidebarpane/setobject/index.html | 2 +- .../extensionsidebarpane/setpage/index.html | 2 +- .../devtools/panels/onthemechanged/index.html | 2 +- .../webextensions/api/dns/resolve/index.html | 4 +- .../api/downloads/cancel/index.html | 2 +- .../api/downloads/download/index.html | 6 +- .../api/downloads/erase/index.html | 4 +- .../api/downloads/getfileicon/index.html | 2 +- .../webextensions/api/downloads/index.html | 2 +- .../api/downloads/onchanged/index.html | 2 +- .../api/downloads/oncreated/index.html | 2 +- .../api/downloads/onerased/index.html | 2 +- .../api/downloads/open/index.html | 2 +- .../api/downloads/pause/index.html | 2 +- .../api/downloads/removefile/index.html | 2 +- .../api/downloads/resume/index.html | 2 +- .../api/downloads/search/index.html | 8 +- .../api/downloads/show/index.html | 2 +- .../downloads/showdefaultfolder/index.html | 2 +- .../api/events/urlfilter/index.html | 2 +- .../extension/getbackgroundpage/index.html | 8 +- .../api/extension/geturl/index.html | 2 +- .../api/extension/getviews/index.html | 6 +- .../extension/inincognitocontext/index.html | 4 +- .../isallowedfileschemeaccess/index.html | 2 +- .../isallowedincognitoaccess/index.html | 2 +- .../extensiontypes/imagedetails/index.html | 2 +- .../webextensions/api/find/find/index.html | 12 +- .../api/find/highlightresults/index.html | 2 +- .../api/find/removehighlighting/index.html | 4 +- .../api/history/addurl/index.html | 4 +- .../api/history/deleteall/index.html | 2 +- .../api/history/deleterange/index.html | 2 +- .../api/history/deleteurl/index.html | 4 +- .../api/history/getvisits/index.html | 2 +- .../api/history/ontitlechanged/index.html | 2 +- .../api/history/onvisited/index.html | 2 +- .../api/history/onvisitremoved/index.html | 2 +- .../api/history/search/index.html | 6 +- .../api/i18n/detectlanguage/index.html | 2 +- .../api/i18n/getacceptlanguages/index.html | 2 +- .../api/i18n/getmessage/index.html | 2 +- .../api/i18n/getuilanguage/index.html | 2 +- .../api/identity/getredirecturl/index.html | 2 +- .../api/identity/launchwebauthflow/index.html | 2 +- .../api/idle/onstatechanged/index.html | 2 +- .../api/idle/querystate/index.html | 2 +- .../api/idle/setdetectioninterval/index.html | 2 +- .../add-ons/webextensions/api/index.html | 4 +- .../api/management/get/index.html | 2 +- .../api/management/getall/index.html | 2 +- .../getpermissionwarningsbyid/index.html | 2 +- .../index.html | 2 +- .../api/management/getself/index.html | 2 +- .../api/management/install/index.html | 2 +- .../api/management/ondisabled/index.html | 2 +- .../api/management/onenabled/index.html | 2 +- .../api/management/oninstalled/index.html | 6 +- .../api/management/onuninstalled/index.html | 2 +- .../api/management/setenabled/index.html | 2 +- .../api/management/uninstall/index.html | 6 +- .../api/management/uninstallself/index.html | 4 +- .../webextensions/api/menus/create/index.html | 12 +- .../api/menus/gettargetelement/index.html | 4 +- .../webextensions/api/menus/index.html | 2 +- .../api/menus/onclicked/index.html | 2 +- .../api/menus/onhidden/index.html | 2 +- .../api/menus/onshown/index.html | 8 +- .../api/menus/overridecontext/index.html | 4 +- .../api/menus/refresh/index.html | 2 +- .../webextensions/api/menus/remove/index.html | 2 +- .../api/menus/removeall/index.html | 2 +- .../webextensions/api/menus/update/index.html | 10 +- .../api/notifications/clear/index.html | 2 +- .../api/notifications/create/index.html | 4 +- .../api/notifications/getall/index.html | 4 +- .../api/notifications/onclicked/index.html | 2 +- .../api/notifications/onclosed/index.html | 2 +- .../api/notifications/onshown/index.html | 2 +- .../api/notifications/update/index.html | 2 +- .../api/omnibox/oninputcancelled/index.html | 2 +- .../api/omnibox/oninputchanged/index.html | 2 +- .../api/omnibox/oninputentered/index.html | 2 +- .../api/omnibox/oninputstarted/index.html | 2 +- .../omnibox/setdefaultsuggestion/index.html | 2 +- .../api/pageaction/getpopup/index.html | 2 +- .../api/pageaction/gettitle/index.html | 2 +- .../api/pageaction/hide/index.html | 2 +- .../api/pageaction/isshown/index.html | 2 +- .../api/pageaction/onclicked/index.html | 2 +- .../api/pageaction/openpopup/index.html | 2 +- .../api/pageaction/seticon/index.html | 2 +- .../api/pageaction/setpopup/index.html | 2 +- .../api/pageaction/settitle/index.html | 2 +- .../api/pageaction/show/index.html | 2 +- .../api/permissions/contains/index.html | 2 +- .../api/permissions/getall/index.html | 2 +- .../api/permissions/onadded/index.html | 2 +- .../api/permissions/onremoved/index.html | 2 +- .../api/permissions/remove/index.html | 2 +- .../api/permissions/request/index.html | 2 +- .../api/pkcs11/getmoduleslots/index.html | 2 +- .../api/pkcs11/installmodule/index.html | 2 +- .../api/pkcs11/ismoduleinstalled/index.html | 2 +- .../api/pkcs11/uninstallmodule/index.html | 2 +- .../webextensions/api/privacy/index.html | 2 +- .../api/privacy/network/index.html | 2 +- .../api/privacy/services/index.html | 2 +- .../api/privacy/websites/index.html | 4 +- .../api/proxy/onrequest/index.html | 2 +- .../api/proxy/register/index.html | 12 +- .../api/proxy/settings/index.html | 2 +- .../api/proxy/unregister/index.html | 2 +- .../api/runtime/connect/index.html | 4 +- .../api/runtime/connectnative/index.html | 2 +- .../api/runtime/getbackgroundpage/index.html | 8 +- .../api/runtime/getbrowserinfo/index.html | 2 +- .../api/runtime/getmanifest/index.html | 6 +- .../getpackagedirectoryentry/index.html | 2 +- .../api/runtime/getplatforminfo/index.html | 2 +- .../api/runtime/geturl/index.html | 6 +- .../api/runtime/lasterror/index.html | 8 +- .../onbrowserupdateavailable/index.html | 2 +- .../api/runtime/onconnect/index.html | 4 +- .../api/runtime/onconnectexternal/index.html | 4 +- .../api/runtime/oninstalled/index.html | 4 +- .../api/runtime/onmessage/index.html | 24 ++-- .../api/runtime/onmessageexternal/index.html | 4 +- .../api/runtime/onstartup/index.html | 4 +- .../api/runtime/onsuspend/index.html | 2 +- .../api/runtime/onsuspendcanceled/index.html | 2 +- .../api/runtime/onupdateavailable/index.html | 2 +- .../api/runtime/openoptionspage/index.html | 2 +- .../webextensions/api/runtime/port/index.html | 10 +- .../api/runtime/reload/index.html | 2 +- .../api/runtime/requestupdatecheck/index.html | 2 +- .../api/runtime/sendmessage/index.html | 4 +- .../api/runtime/sendnativemessage/index.html | 2 +- .../api/runtime/setuninstallurl/index.html | 2 +- .../webextensions/api/search/get/index.html | 2 +- .../api/search/search/index.html | 6 +- .../api/sessions/forgetclosedtab/index.html | 2 +- .../sessions/forgetclosedwindow/index.html | 2 +- .../api/sessions/getrecentlyclosed/index.html | 2 +- .../api/sessions/gettabvalue/index.html | 2 +- .../api/sessions/getwindowvalue/index.html | 2 +- .../api/sessions/onchanged/index.html | 2 +- .../api/sessions/removetabvalue/index.html | 4 +- .../api/sessions/removewindowvalue/index.html | 4 +- .../api/sessions/restore/index.html | 2 +- .../api/sessions/settabvalue/index.html | 2 +- .../api/sessions/setwindowvalue/index.html | 2 +- .../api/sidebaraction/close/index.html | 2 +- .../api/sidebaraction/getpanel/index.html | 2 +- .../api/sidebaraction/gettitle/index.html | 2 +- .../api/sidebaraction/index.html | 2 +- .../api/sidebaraction/isopen/index.html | 4 +- .../api/sidebaraction/open/index.html | 2 +- .../api/sidebaraction/seticon/index.html | 2 +- .../api/sidebaraction/setpanel/index.html | 2 +- .../api/sidebaraction/settitle/index.html | 2 +- .../api/sidebaraction/toggle/index.html | 2 +- .../api/storage/local/index.html | 2 +- .../api/storage/managed/index.html | 2 +- .../api/storage/onchanged/index.html | 4 +- .../api/storage/storagearea/clear/index.html | 2 +- .../api/storage/storagearea/get/index.html | 24 ++-- .../api/storage/storagearea/remove/index.html | 2 +- .../api/storage/storagearea/set/index.html | 2 +- .../webextensions/api/storage/sync/index.html | 2 +- .../api/tabs/capturetab/index.html | 4 +- .../api/tabs/capturevisibletab/index.html | 4 +- .../webextensions/api/tabs/connect/index.html | 2 +- .../webextensions/api/tabs/create/index.html | 2 +- .../api/tabs/detectlanguage/index.html | 4 +- .../webextensions/api/tabs/discard/index.html | 4 +- .../api/tabs/duplicate/index.html | 2 +- .../api/tabs/executescript/index.html | 12 +- .../webextensions/api/tabs/get/index.html | 2 +- .../api/tabs/getcurrent/index.html | 4 +- .../webextensions/api/tabs/getzoom/index.html | 4 +- .../api/tabs/getzoomsettings/index.html | 2 +- .../webextensions/api/tabs/goback/index.html | 2 +- .../api/tabs/goforward/index.html | 2 +- .../webextensions/api/tabs/hide/index.html | 4 +- .../api/tabs/insertcss/index.html | 4 +- .../webextensions/api/tabs/move/index.html | 6 +- .../api/tabs/moveinsuccession/index.html | 2 +- .../api/tabs/onactivated/index.html | 2 +- .../api/tabs/onattached/index.html | 2 +- .../api/tabs/oncreated/index.html | 2 +- .../api/tabs/ondetached/index.html | 2 +- .../api/tabs/onhighlighted/index.html | 2 +- .../webextensions/api/tabs/onmoved/index.html | 2 +- .../api/tabs/onremoved/index.html | 2 +- .../api/tabs/onreplaced/index.html | 2 +- .../api/tabs/onupdated/index.html | 12 +- .../api/tabs/onzoomchange/index.html | 2 +- .../webextensions/api/tabs/print/index.html | 2 +- .../api/tabs/printpreview/index.html | 4 +- .../webextensions/api/tabs/query/index.html | 8 +- .../webextensions/api/tabs/reload/index.html | 6 +- .../webextensions/api/tabs/remove/index.html | 4 +- .../api/tabs/removecss/index.html | 4 +- .../api/tabs/saveaspdf/index.html | 2 +- .../api/tabs/sendmessage/index.html | 8 +- .../webextensions/api/tabs/setzoom/index.html | 4 +- .../api/tabs/setzoomsettings/index.html | 2 +- .../webextensions/api/tabs/show/index.html | 4 +- .../webextensions/api/tabs/tab/index.html | 2 +- .../api/tabs/togglereadermode/index.html | 4 +- .../webextensions/api/tabs/update/index.html | 4 +- .../webextensions/api/tabs/warmup/index.html | 4 +- .../api/theme/getcurrent/index.html | 2 +- .../api/theme/onupdated/index.html | 2 +- .../webextensions/api/theme/reset/index.html | 2 +- .../webextensions/api/theme/update/index.html | 4 +- .../webextensions/api/topsites/get/index.html | 4 +- .../webextensions/api/topsites/index.html | 2 +- .../api/types/browsersetting/clear/index.html | 2 +- .../api/types/browsersetting/get/index.html | 2 +- .../api/types/browsersetting/set/index.html | 2 +- .../webextensions/api/types/index.html | 2 +- .../api/userscripts/onbeforescript/index.html | 4 +- .../api/userscripts/register/index.html | 2 +- .../unregister/index.html | 2 +- .../working_with_userscripts/index.html | 2 +- .../api/webnavigation/getallframes/index.html | 4 +- .../api/webnavigation/getframe/index.html | 6 +- .../webnavigation/onbeforenavigate/index.html | 4 +- .../api/webnavigation/oncommitted/index.html | 4 +- .../api/webnavigation/oncompleted/index.html | 4 +- .../oncreatednavigationtarget/index.html | 4 +- .../ondomcontentloaded/index.html | 4 +- .../webnavigation/onerroroccurred/index.html | 4 +- .../onhistorystateupdated/index.html | 4 +- .../onreferencefragmentupdated/index.html | 4 +- .../webnavigation/ontabreplaced/index.html | 2 +- .../webrequest/filterresponsedata/index.html | 2 +- .../api/webrequest/getsecurityinfo/index.html | 4 +- .../handlerbehaviorchanged/index.html | 2 +- .../index.html | 2 +- .../api/webrequest/onauthrequired/index.html | 10 +- .../webrequest/onbeforeredirect/index.html | 2 +- .../api/webrequest/onbeforerequest/index.html | 12 +- .../webrequest/onbeforesendheaders/index.html | 6 +- .../api/webrequest/oncompleted/index.html | 2 +- .../api/webrequest/onerroroccurred/index.html | 2 +- .../webrequest/onheadersreceived/index.html | 4 +- .../webrequest/onresponsestarted/index.html | 2 +- .../api/webrequest/onsendheaders/index.html | 2 +- .../api/webrequest/requestfilter/index.html | 2 +- .../webrequest/streamfilter/close/index.html | 2 +- .../streamfilter/disconnect/index.html | 2 +- .../webrequest/streamfilter/error/index.html | 2 +- .../api/webrequest/streamfilter/index.html | 4 +- .../webrequest/streamfilter/ondata/index.html | 18 +-- .../streamfilter/onerror/index.html | 4 +- .../streamfilter/onstart/index.html | 2 +- .../webrequest/streamfilter/onstop/index.html | 4 +- .../webrequest/streamfilter/resume/index.html | 2 +- .../webrequest/streamfilter/status/index.html | 2 +- .../streamfilter/suspend/index.html | 2 +- .../webrequest/streamfilter/write/index.html | 2 +- .../api/windows/create/index.html | 6 +- .../webextensions/api/windows/get/index.html | 2 +- .../api/windows/getall/index.html | 2 +- .../api/windows/getcurrent/index.html | 2 +- .../api/windows/getlastfocused/index.html | 2 +- .../api/windows/oncreated/index.html | 2 +- .../api/windows/onfocuschanged/index.html | 2 +- .../api/windows/onremoved/index.html | 2 +- .../api/windows/remove/index.html | 4 +- .../api/windows/update/index.html | 2 +- .../webextensions/browser_actions/index.html | 2 +- .../index.html | 4 +- .../chrome_incompatibilities/index.html | 8 +- .../webextensions/content_scripts/index.html | 32 ++--- .../content_security_policy/index.html | 6 +- .../debugging_(before_firefox_50)/index.html | 4 +- .../extending_the_developer_tools/index.html | 6 +- .../implement_a_settings_page/index.html | 6 +- .../interact_with_the_clipboard/index.html | 14 +-- .../intercept_http_requests/index.html | 6 +- .../internationalization/index.html | 2 +- .../manifest.json/browser_action/index.html | 16 +-- .../browser_specific_settings/index.html | 8 +- .../manifest.json/commands/index.html | 4 +- .../manifest.json/content_scripts/index.html | 12 +- .../manifest.json/incognito/index.html | 2 +- .../webextensions/manifest.json/index.html | 2 +- .../manifest.json/offline_enabled/index.html | 2 +- .../optional_permissions/index.html | 8 +- .../manifest.json/page_action/index.html | 2 +- .../manifest.json/permissions/index.html | 12 +- .../manifest.json/storage/index.html | 2 +- .../manifest.json/theme_experiment/index.html | 8 +- .../manifest.json/version/index.html | 6 +- .../web_accessible_resources/index.html | 2 +- .../modify_a_web_page/index.html | 16 +-- .../webextensions/native_manifests/index.html | 24 ++-- .../webextensions/native_messaging/index.html | 32 ++--- .../index.html | 10 +- .../index.html | 20 +-- .../add-ons/webextensions/tips/index.html | 2 +- .../webextensions/user_actions/index.html | 4 +- .../user_interface/browser_action/index.html | 4 +- .../context_menu_items/index.html | 4 +- .../user_interface/devtools_panels/index.html | 2 +- .../user_interface/extension_pages/index.html | 6 +- .../user_interface/notifications/index.html | 4 +- .../user_interface/omnibox/index.html | 6 +- .../user_interface/page_actions/index.html | 2 +- .../user_interface/sidebars/index.html | 2 +- .../index.html | 2 +- .../work_with_the_bookmarks_api/index.html | 30 ++--- .../work_with_the_cookies_api/index.html | 18 +-- .../working_with_files/index.html | 8 +- .../working_with_the_tabs_api/index.html | 42 +++---- .../your_first_webextension/index.html | 2 +- .../your_second_webextension/index.html | 4 +- .../build_instructions/ccache/index.html | 2 +- .../index.html | 4 +- .../index.html | 2 +- .../index.html | 6 +- .../build_instructions/gtest/index.html | 4 +- .../simple_thunderbird_build/index.html | 34 ++--- .../eclipse_cdt_manual_setup/index.html | 2 +- .../developer_guide/gecko_logging/index.html | 18 +-- .../developer_guide/svg_guidelines/index.html | 12 +- .../index.html | 2 +- .../redirect_tracking_protection/index.html | 2 +- .../privacy/state_partitioning/index.html | 2 +- .../cookiepartitionedforeign/index.html | 2 +- .../mozilla/firefox/releases/11/index.html | 2 +- .../adding_feed_readers_to_firefox/index.html | 2 +- .../3.5/updating_extensions/index.html | 10 +- .../releases/4/the_add-on_bar/index.html | 4 +- .../releases/5/updating_add-ons/index.html | 2 +- .../mozilla/firefox/releases/85/index.html | 2 +- .../mozilla/firefox/releases/86/index.html | 2 +- .../index.html | 2 +- .../sample1_-_hashing/index.html | 2 +- .../index.html | 2 +- .../nss/pkcs11/module_specs/index.html | 10 +- .../nss/reference/fc_initialize/index.html | 2 +- .../nss_certificate_functions/index.html | 54 ++++---- files/en-us/mozilla/virtualenv/index.html | 10 +- .../tools/application/manifests/index.html | 2 +- .../application/service_workers/index.html | 2 +- files/en-us/tools/browser_console/index.html | 16 +-- .../debugger-api/debugger.memory/index.html | 2 +- .../tutorial-breakpoint/index.html | 4 +- files/en-us/tools/debugger.object/index.html | 10 +- .../debugger/source_map_errors/index.html | 2 +- .../request_details/index.html | 2 +- .../how_to/examine_and_edit_css/index.html | 2 +- files/en-us/tools/style_editor/index.html | 2 +- .../web_console/console_messages/index.html | 2 +- .../tools/web_console/helpers/index.html | 2 +- files/en-us/webassembly/c_to_wasm/index.html | 16 +-- .../webassembly/caching_modules/index.html | 18 +-- .../loading_and_running/index.html | 10 +- .../en-us/webassembly/rust_to_wasm/index.html | 34 ++--- .../text_format_to_wasm/index.html | 6 +- .../understanding_the_text_format/index.html | 80 ++++++------ .../using_the_javascript_api/index.html | 28 ++--- 726 files changed, 3959 insertions(+), 3959 deletions(-) diff --git a/files/en-us/games/anatomy/index.html b/files/en-us/games/anatomy/index.html index 17d4818a9c3ce02..57b0f2a58e8868a 100644 --- a/files/en-us/games/anatomy/index.html +++ b/files/en-us/games/anatomy/index.html @@ -33,7 +33,7 @@

Building a main loop in JavaScriptSome code needs to be run frame-by-frame so why attach that function to anything other than the browser's redraw schedule? On the Web, {{ domxref("window.requestAnimationFrame()") }} will be the foundation of most well-programmed per-frame main loops.  A callback function must be passed in to it when it is called. That callback function will be executed at a suitable time before the next repaint. Here is an example of a simple main loop:

-
window.main = function () {
+
window.main = function () {
   window.requestAnimationFrame( main );
 
   // Whatever your main loop needs to do
@@ -57,7 +57,7 @@ 

Building a better ma

There are two obvious issues with our previous main loop: main() pollutes the {{ domxref("window") }} object (where all global variables are stored) and the example code did not leave us with a way to stop the loop unless the whole tab is closed or refreshed. For the first issue, if you want the main loop to just run and you do not need easy (direct) access to it, you could create it as an Immediately-Invoked Function Expression (IIFE).

-
/*
+
/*
 * Starting with the semicolon is in case whatever line of code above this example
 * relied on automatic semicolon insertion (ASI). The browser could accidentally
 * think this whole example continues from the previous line. The leading semicolon
@@ -82,7 +82,7 @@ 

Building a better ma

For the second issue, stopping the main loop, you will need to cancel the call to main() with {{ domxref("window.cancelAnimationFrame()") }}. You will need to pass cancelAnimationFrame() the ID token given by requestAnimationFrame() when it was last called. Let us assume that your game's functions and variables are built on a namespace that you called MyGame. Expanding our last example, the main loop would now look like:

-
/*
+
/*
 * Starting with the semicolon is in case whatever line of code above this example
 * relied on automatic semicolon insertion (ASI). The browser could accidentally
 * think this whole example continues from the previous line. The leading semicolon
@@ -103,7 +103,7 @@ 

Building a better ma

We now have a variable declared in our MyGame namespace, which we call stopMain, that contains the ID returned from our main loop's most recent call to requestAnimationFrame(). At any point, we can stop the main loop by telling the browser to cancel the request that corresponds to our token.

-
window.cancelAnimationFrame( MyGame.stopMain );
+
window.cancelAnimationFrame( MyGame.stopMain );

The key to programming a main loop, in JavaScript, is to attach it to whatever event should be driving your action and pay attention to how the different systems involved interplay. You may have multiple components driven by multiple different types of events. This feels like unnecessary complexity but it might just be good optimization (not necessarily, of course). The problem is that you are not programming a typical main loop. In Javascript, you are using the browser's main loop and you are trying to do so effectively.

@@ -130,12 +130,12 @@

Building a moreThis value is not too useful alone, since it is relative to a fairly uninteresting event, but it can be subtracted from another timestamp to accurately and precisely determine how much time elapsed between those two points. To acquire one of these timestamps, you can call window.performance.now() and store the result as a variable.

-
var tNow = window.performance.now();
+
var tNow = window.performance.now();
 

Back to the topic of the main loop. You will often want to know when your main function was invoked. Because this is common, window.requestAnimationFrame() always provides a DOMHighResTimeStamp to callbacks as an argument when they are executed. This leads to another enhancement to our previous main loops.

-
/*
+
/*
 * Starting with the semicolon is in case whatever line of code above this example
 * relied on automatic semicolon insertion (ASI). The browser could accidentally
 * think this whole example continues from the previous line. The leading semicolon
@@ -169,7 +169,7 @@ 

What most browser games should

If your game can hit the maximum refresh rate of any hardware you support then your job is fairly easy. You can update, render, and then do nothing until VSync.

-
/*
+
/*
 * Starting with the semicolon is in case whatever line of code above this example
 * relied on automatic semicolon insertion (ASI). The browser could accidentally
 * think this whole example continues from the previous line. The leading semicolon
@@ -241,7 +241,7 @@ 

Other ways to handle v

Note: This example, specifically, is in need of technical review.

-
/*
+
/*
 * Starting with the semicolon is in case whatever line of code above this example
 * relied on automatic semicolon insertion (ASI). The browser could accidentally
 * think this whole example continues from the previous line. The leading semicolon
diff --git a/files/en-us/games/techniques/2d_collision_detection/index.html b/files/en-us/games/techniques/2d_collision_detection/index.html
index 7c09cd8cce47ab5..097785fec4a52f3 100644
--- a/files/en-us/games/techniques/2d_collision_detection/index.html
+++ b/files/en-us/games/techniques/2d_collision_detection/index.html
@@ -17,7 +17,7 @@ 

Axis-Aligned Bounding Box

One of the simpler forms of collision detection is between two rectangles that are axis aligned — meaning no rotation. The algorithm works by ensuring there is no gap between any of the 4 sides of the rectangles. Any gap means a collision does not exist.

-
var rect1 = {x: 5, y: 5, width: 50, height: 50}
+
var rect1 = {x: 5, y: 5, width: 50, height: 50}
 var rect2 = {x: 20, y: 10, width: 10, height: 10}
 
 if (rect1.x < rect2.x + rect2.width &&
@@ -40,12 +40,12 @@ 

Axis-Aligned Bounding Box