$ show diepvantien/Tiktok-Pro-Tools
TikTok Pro Tools is a browser extension that enhances the TikTok web experience with features like background play, auto-pause, playback speed control, audio equalization, 360 audio effects, cleaner viewing, keyword-based filtering, and media downloads. The extension consists of a background service worker for handling downloads and alarms, a content script that modifies the TikTok page based on user settings, and a popup UI for adjusting settings. The codebase demonstrates good use of browser APIs and includes a notable audio processing component in hook.js that intercepts the Web Audio API to insert custom equalizer and 360 effects.
The LLM identified 2 files worth highlighting for reuse:
This file intercepts the creation of MediaElementSource in an AudioContext to insert a custom audio processing chain (bass, mid, treble, compressor, and optional panner for 360 effect). It allows real-time equalizer adjustments and 360 audio effects on any video element by overriding a core Web Audio API method. The implementation is self-contained and could be extracted to a library for adding audio effects to web pages.
The background.js file contains a self-contained module for interacting with the tikwm.com API to fetch download links for TikTok videos and triggering downloads via the Chrome downloads API. It handles messages from the content script and popup to initiate downloads, making it a reusable pattern for integrating with third-party media APIs in browser extensions.