Removed logging.

This commit is contained in:
Ajay Ramachandran
2019-07-26 22:43:09 -04:00
parent 97e202dbd0
commit 00877fb087
3 changed files with 2 additions and 6 deletions

View File

@@ -85,7 +85,6 @@ function addSponsorTime(time, videoID) {
//save this info //save this info
let sponsorTimeKey = "sponsorTimes" + videoID; let sponsorTimeKey = "sponsorTimes" + videoID;
console.log(sponsorTimes)
chrome.storage.sync.set({[sponsorTimeKey]: sponsorTimes}); chrome.storage.sync.set({[sponsorTimeKey]: sponsorTimes});
}); });
} }
@@ -124,9 +123,6 @@ function submitTimes(videoID, callback) {
for (let i = 0; i < sponsorTimes.length; i++) { for (let i = 0; i < sponsorTimes.length; i++) {
getUserID(function(userIDStorage) { getUserID(function(userIDStorage) {
//submit the sponsorTime //submit the sponsorTime
console.log(sponsorTimes)
console.log("/api/postVideoSponsorTimes?videoID=" + videoID + "&startTime=" + sponsorTimes[i][0] + "&endTime=" + sponsorTimes[i][1]
+ "&userID=" + userIDStorage)
sendRequestToServer('GET', "/api/postVideoSponsorTimes?videoID=" + videoID + "&startTime=" + sponsorTimes[i][0] + "&endTime=" + sponsorTimes[i][1] sendRequestToServer('GET', "/api/postVideoSponsorTimes?videoID=" + videoID + "&startTime=" + sponsorTimes[i][0] + "&endTime=" + sponsorTimes[i][1]
+ "&userID=" + userIDStorage, function(xmlhttp, error) { + "&userID=" + userIDStorage, function(xmlhttp, error) {
if (xmlhttp.readyState == 4 && !error) { if (xmlhttp.readyState == 4 && !error) {

View File

@@ -1,7 +1,7 @@
{ {
"name": "SponsorBlock - YouTube Sponsorship Blocker", "name": "SponsorBlock - YouTube Sponsorship Blocker",
"short_name": "SponsorBlock", "short_name": "SponsorBlock",
"version": "1.0.8", "version": "1.0.9",
"description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.", "description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.",
"content_scripts": [ "content_scripts": [
{ {

View File

@@ -1,7 +1,7 @@
{ {
"name": "SponsorBlock - YouTube Sponsorship Blocker", "name": "SponsorBlock - YouTube Sponsorship Blocker",
"short_name": "SponsorBlock", "short_name": "SponsorBlock",
"version": "1.0.8", "version": "1.0.9",
"description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.", "description": "Skip over sponsorship on YouTube videos. Report sponsors on videos you watch to save the time of others.",
"content_scripts": [ "content_scripts": [
{ {