Skip to content

Commit

Permalink
Remove google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Dec 11, 2024
1 parent f6c50ad commit 303dcd8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 145 deletions.
13 changes: 4 additions & 9 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@
// limitations under the License.

chrome.action.onClicked.addListener((tab) => {
chrome.storage.sync.get({ optOutAnalytics: false }, (results) => {
const files = results.optOutAnalytics
? ["script.js"]
: ["script.js", "ga.js"];
chrome.scripting.executeScript({
target: { tabId: tab.id, allFrames: true },
world: "MAIN",
files,
});
chrome.scripting.executeScript({
target: { tabId: tab.id, allFrames: true },
world: "MAIN",
files: ["script.js"],
});
});
84 changes: 0 additions & 84 deletions src/ga.js

This file was deleted.

9 changes: 2 additions & 7 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Picture-in-Picture Extension (by Google)",
"description": "Watch video using Picture-in-Picture",
"version": "1.11",
"version": "1.12",
"icons": {
"128": "assets/icon128.png"
},
Expand All @@ -24,13 +24,8 @@
}
}
},
"options_ui": {
"page": "options.html",
"open_in_tab": false
},
"permissions": [
"scripting",
"storage"
"scripting"
],
"host_permissions": [
"<all_urls>"
Expand Down
12 changes: 0 additions & 12 deletions src/options.html

This file was deleted.

28 changes: 0 additions & 28 deletions src/options.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,4 @@ function maybeUpdatePictureInPictureVideo(entries, observer) {
return;
}
await requestPictureInPicture(video);
_gaq.push(['_trackPageview', '/']);
})();

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-134864766-1']);
_gaq.push(['_setDetectTitle', false]);

0 comments on commit 303dcd8

Please sign in to comment.