https://github.com/bingqiao/safari-extension-autorefresh-javascript
A Safari Web Extension to allow auto-refreshing of individual tabs
https://github.com/bingqiao/safari-extension-autorefresh-javascript
auto-refresh auto-reload autorefresh autorefresh-extension autoreload browser-extension javascript macos safari safari-extension swift
Last synced: 5 months ago
JSON representation
A Safari Web Extension to allow auto-refreshing of individual tabs
- Host: GitHub
- URL: https://github.com/bingqiao/safari-extension-autorefresh-javascript
- Owner: bingqiao
- License: mit
- Created: 2021-10-27T14:12:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-19T21:52:11.000Z (over 4 years ago)
- Last Synced: 2023-03-07T10:25:40.731Z (about 3 years ago)
- Topics: auto-refresh, auto-reload, autorefresh, autorefresh-extension, autoreload, browser-extension, javascript, macos, safari, safari-extension, swift
- Language: Swift
- Homepage:
- Size: 315 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Safari Web Extension - AutoRefresh
Please check out the updated projects:
* [Extension resources project](https://github.com/bingqiao/browser-ext-react-esbuild)
* [Container Swift project](https://github.com/bingqiao/browser-ext)
***
See article on [Medium](https://medium.com/@bingqiao/safari-auto-refresh-web-extension-javascript-only-sort-of-9298970ec0ac).
App store [download](https://apps.apple.com/gb/app/autorefresh/id1592466003) (free and no Ads).
There are a few websites that I visit and that time out after a short period.
It started annoying me. There are Safari extensions from App store that enable
autorefreshing but none was free. I started looking for my own solutions.
It took a couple of minutes of searching online to find some articles on how to
create Safari Web Extension. It seems that creating extensions for Safari is now
less complicated than it used to be. I only had to rely on Apple's official docs
and Mozilla MDN for this small project.
Please refer to [Safari Web Extensions](https://developer.apple.com/documentation/safariservices/safari_web_extensions) on how to create a Safari Web Extension
project and how to install it locally on Mac. Please refer to [Browser Extensions](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions)
for how different components work with each other and API docs for browser
extensions in general.
This AutoRefresh extension allows you to auto refresh individual tabs in Safari.
The `enable` checkbox controlls if autorefresh is enabled, for all tabs, while
`start/stop` button controlls if an individual tab should be autorefreshing.
The implementation is not perfect. you have to "stop/start" for individual tabs if
"enable" flag is toggled. There could be other bugs too so even though this works
for me but it is really mainly for demo purpose for others.