aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-07-23 18:42:44 -0400
committerAjay Ramachandran <[email protected]>2019-07-23 18:42:44 -0400
commitc91c08a17f1292ce26c20bbccc64dc2731010701 (patch)
tree009fa75b31ce026e5f37d8e9d729ba18e03480a6
parent86bffeb96c7358def1297b3661b3a89e0b353a92 (diff)
downloadSponsorBlock-c91c08a17f1292ce26c20bbccc64dc2731010701.tar.gz
SponsorBlock-c91c08a17f1292ce26c20bbccc64dc2731010701.zip
Made it send a request to the server to sponsor skip views.
-rw-r--r--content.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/content.js b/content.js
index 7b5f32dd..2b51f7f9 100644
--- a/content.js
+++ b/content.js
@@ -168,6 +168,9 @@ function sponsorCheck(sponsorTimes) { // Video skipping
openSkipNotice();
setTimeout(() => closeSkipNotice(currentUUID), 7000);
+
+ //send telemetry that a this sponsor was skipped happened
+ sendRequestToServer("GET", "/api/viewedVideoSponsorTime?UUID=" + currentUUID);
}
lastTime = v.currentTime;