2121 * enable button functionalities. The script starts the initialization process
2222 * automatically upon loading.
2323 *
24- * Depandencies :
25- * This file is main script, it therefore depends on all othter helper files that are content scripts. Popup page scripts are separate.
24+ * Dependencies :
25+ * This file is main script, it therefore depends on all other helper files that are content scripts. Popup page scripts are separate.
2626 *
2727 */
2828//Instructions for AI: do not remove comments! MUST NOT REMOVE COMMENTS. This one too!
3131
3232
3333/**
34- * This funcition is called first.
34+ * This function is called first.
3535 */
3636function publicStaticVoidMain ( ) {
37- // The message intended for the service worker config.js, the fucntion will be run after response will be received.
37+ // The message intended for the service worker config.js, the function will be run after response will be received.
3838 chrome . runtime . sendMessage ( { type : 'getConfig' } , ( response ) => {
3939 if ( response && response . config ) {
4040 logConCgp ( '[init] Configuration successfully loaded:' , response . config ) ;
@@ -128,7 +128,7 @@ function manageKeyboardShortcutEvents(event) {
128128
129129 /**
130130 *
131- * Inserts custom buttons, separators and setitngs toggles into the webpage and starts resiliency checks if enabled.
131+ * Inserts custom buttons, separators and settings toggles into the webpage and starts resiliency checks if enabled.
132132 * @param {boolean } enableResiliency - Flag to enable or disable resiliency checks.
133133 */
134134 function buttonBoxCheckingAndInjection ( enableResiliency = true , activeWebsite ) {
@@ -148,7 +148,7 @@ function manageKeyboardShortcutEvents(event) {
148148
149149 // Define the selector to wait for using InjectionTargetsOnWebsite
150150 const selectors = window . InjectionTargetsOnWebsite . selectors . containers ;
151- // A unified callback funciton will search for div where we will insert stuff and
151+ // A unified callback function will search for div where we will insert stuff and
152152 const handleTargetDiv = ( targetDiv ) => {
153153 if ( ! targetFound ) {
154154 targetFound = true ; // Set the flag to prevent other callbacks from executing
@@ -255,7 +255,7 @@ function manageKeyboardShortcutEvents(event) {
255255 * @param {Function } callback - The function to execute when a URL change is detected.
256256 * @description Helper function that monitors URL changes using MutationObserver.
257257 */
258- function resilentStartAndRetryOnSPANavigation ( callback ) {
258+ function resilientStartAndRetryOnSPANavigation ( callback ) {
259259 let previousUrl = location . href ;
260260 const urlChangeObserver = new MutationObserver ( ( ) => {
261261 const currentUrl = location . href ;
@@ -278,7 +278,7 @@ function manageKeyboardShortcutEvents(event) {
278278 selectAndInitializeAppropriateExtensionScript ( ) ;
279279
280280 // Begin monitoring URL changes to handle SPA navigation
281- resilentStartAndRetryOnSPANavigation ( ( ) => {
281+ resilientStartAndRetryOnSPANavigation ( ( ) => {
282282 logConCgp ( '[init] Path change detected. Re-initializing script...' ) ;
283283 debouncedEnhancedInitialization ( ) ;
284284 } ) ;
0 commit comments