Refactored code to avoid repetition by extracting common functionality into separate functions.
Introduced a configuration object to store and manage settings.
Enhanced the settings dialog with tooltips and consistent styling for better user experience.
Replaced the use of requestAnimationFrame with a MutationObserver for handling skip actions.
Added error handling to catch and handle any potential errors.