This extension will track your time on YouTube (opened & watched).
Premium users can view and search full source code, and see the source code differences
between two versions.
Upgrade to premium
manifest.json
{
"manifest_version": 2,
"name": "YouTube Tracker",
"short_name": "YTTracker",
"description": "This extension will track your time on YouTube",
"version": "2.3.0",
"icons": {
"16": "assets/icon16.png",
"48": "assets/icon48.png",
"128": "assets/icon128.png"
},
"applications": {
"gecko": {
"id": "yttracker@mrcraftcod.fr"
}
},
"author": "MrCraftCod",
"homepage_url": "https://github.com/RakSrinaNa/YTTracker",
"permissions": [
"https://www.youtube.com/*",
"https://yttracker.mrcraftcod.fr/*",
"storage",
"downloads",
"notifications",
"unlimitedStorage",
"identity"
],
"options_ui": {
"page": "options.html",
"open_in_tab": true
},
"browser_action": {
"default_icon": "assets/icon128.png",
"default_title": "YoutubeTracker",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": [
"https://www.youtube.com/*",
"https://yttracker.mrcraftcod.fr/*"
],
"js": [
"lib/jquery/jquery.min.js",
"js/YTTUtils.js",
"js/content.js"
],
"run_at": "document_start",
"all_frames": true
}
],
"background": {
"scripts": [
"lib/jquery/jquery.min.js",
"js/YTTUtils.js",
"js/background.js"
]
},
"content_security_policy": "script-src 'self'; object-src 'self'",
"web_accessible_resources": [
"js/YTTUtils.js",
"js/hookerUtils.js",
"js/hooker.js"
]
}