Scroll to Top
Add a stylish scroll-to-top button for all websites.
Additional files are visible only to premium users
manifest.json
{
"update_url": "https://clients2.google.com/service/update2/crx",
"version": "0.1.2",
"manifest_version": 3,
"name": "Scroll to Top",
"offline_enabled": true,
"permissions": [
"storage"
],
"homepage_url": "https://mybrowseraddon.com/scroll-to-top.html",
"description": "Add a stylish scroll-to-top button for all websites.",
"background": {
"service_worker": "background.js"
},
"action": {
"default_title": "Scroll to Top",
"default_icon": {
"16": "data/icons/16.png",
"32": "data/icons/32.png",
"48": "data/icons/48.png",
"64": "data/icons/64.png"
}
},
"commands": {
"toggle": {
"description": "Scroll to Top",
"suggested_key": {
"mac": "Command+Shift+D",
"default": "Ctrl+Shift+D"
}
}
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"run_at": "document_start",
"js": [
"data/content_script/inject.js"
],
"css": [
"data/content_script/inject.css"
]
}
],
"icons": {
"16": "data/icons/16.png",
"32": "data/icons/32.png",
"48": "data/icons/48.png",
"64": "data/icons/64.png",
"128": "data/icons/128.png"
}
}