Merge branch 'experimental' of https://github.com/ajayyy/SponsorBlock into experimental-ajay

# Conflicts:
#	content.js
This commit is contained in:
Ajay Ramachandran
2019-12-29 00:08:41 -05:00
2 changed files with 3 additions and 3 deletions

View File

@@ -109,7 +109,7 @@ function submitVote(type, UUID, callback) {
} }
//publish this vote //publish this vote
sendRequestToServer("GET", "/api/voteOnSponsorTime?UUID=" + UUID + "&userID=" + userID + "&type=" + type, function(xmlhttp, error) { sendRequestToServer("POST", "/api/voteOnSponsorTime?UUID=" + UUID + "&userID=" + userID + "&type=" + type, function(xmlhttp, error) {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
callback({ callback({
successType: 1 successType: 1

View File

@@ -652,9 +652,9 @@ function skipToTime(v, index, sponsorTimes, openNotice) {
} }
} }
//send telemetry that a this sponsor was skipped happened //send telemetry that a this sponsor was skipped
if (trackViewCount && !sponsorSkipped[index]) { if (trackViewCount && !sponsorSkipped[index]) {
sendRequestToServer("GET", "/api/viewedVideoSponsorTime?UUID=" + currentUUID); sendRequestToServer("POST", "/api/viewedVideoSponsorTime?UUID=" + currentUUID);
if (!disableAutoSkip) { if (!disableAutoSkip) {
// Count this as a skip // Count this as a skip