mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-15 07:57:09 +03:00
Merge pull request #8 from ajayyy/experimental
Added quick fix for changing UUID when submitting two times
This commit is contained in:
@@ -198,6 +198,12 @@ function getUserID(callback) {
|
|||||||
userID = userIDStorage;
|
userID = userIDStorage;
|
||||||
callback(userID);
|
callback(userID);
|
||||||
} else {
|
} else {
|
||||||
|
//double check if a UUID hasn't been created since this was first called
|
||||||
|
if (userID != null) {
|
||||||
|
callback(userID);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//generate a userID
|
//generate a userID
|
||||||
userID = generateUUID();
|
userID = generateUUID();
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "SponsorBlock - YouTube Sponsorship Blocker",
|
"name": "SponsorBlock - YouTube Sponsorship Blocker",
|
||||||
"short_name": "SponsorBlock",
|
"short_name": "SponsorBlock",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"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": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "SponsorBlock - YouTube Sponsorship Blocker",
|
"name": "SponsorBlock - YouTube Sponsorship Blocker",
|
||||||
"short_name": "SponsorBlock",
|
"short_name": "SponsorBlock",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"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": [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user