Skip to content

Commit

Permalink
instagram live events can be opt-out of
Browse files Browse the repository at this point in the history
  • Loading branch information
steveseguin committed Dec 28, 2023
1 parent 6f9e948 commit 2c2c980
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions dock.html
Original file line number Diff line number Diff line change
Expand Up @@ -3250,6 +3250,12 @@

}

var hideAllEvents = false;
if (urlParams.has("hideallevents")){
hideallevents = true;
}


var hideEmojiOnly = false;
var hideNotQueued = false;

Expand Down Expand Up @@ -4650,6 +4656,9 @@
}
}

if (hideAllEvents && data.event){
return;
}

if (!("id" in data)){
data.id = Date.now() + parseInt(Math.random()*1000000);
Expand Down
2 changes: 2 additions & 0 deletions instagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
if (chatname && (chatname.slice(-1) == ",")){
chatname = chatname.slice(0, -1);
streamEvent = true;
if (!settings.captureevents){return;}
}
} catch(e){
}
Expand All @@ -206,6 +207,7 @@
if (msgs.length==1){
chatmessage = getAllContentNodes(msgs[0]);
streamEvent = true;
if (!settings.captureevents){return;}
} else {
chatmessage = getAllContentNodes(msgs.slice(-1)[0]);
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Social Stream Ninja",
"description": "Powerful tooling to engage live chat on Youtube, Twitch, Zoom, and more",
"manifest_version": 2,
"version": "1.67.10",
"version": "1.67.11",
"homepage_url": "http://socialstream.ninja/",
"icons": {
"128": "icons/icon-128.png"
Expand Down

0 comments on commit 2c2c980

Please sign in to comment.