This userscript monitors your internet speed in Mbps and displays it in a movable panel at the top of the page. The panel can be toggled to show or hide by clicking anywhere on the page. The speed is updated every second to provide real-time performance metrics.
Features:
- Real-time internet speed monitoring.
- Display speed in Mbps with two decimal places.
- Click anywhere on the page to toggle the visibility of the speed panel.
- Semi-transparent panel with adjustable styling.
Usage:
- The speed panel will appear at the top right corner of the page.
- Click anywhere on the page to hide or show the panel.
- The speed is updated every second based on a test file of 1MB. You can adjust the file size or update interval in the script if needed.
Customization:
- Modify the `speedPanel.style` properties to change the appearance of the panel.
- Adjust the `setInterval(calculateSpeed, 1000)` line to change how frequently the speed is updated (in milliseconds).
- Update the URL in the `fetch` function if you need a different file size for testing.
If you encounter any issues or have suggestions for improvements, please visit the support page linked below.
Support: [Your Support URL]
MIT License
Copyright (c) [year] [Your Name]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.