From b797e3cd99edfafc141f71ed12f3e1d53ad9492e Mon Sep 17 00:00:00 2001 From: Javantea Date: Wed, 20 Nov 2024 15:07:51 -0800 Subject: [PATCH 1/2] Allow for self-restreams by allowing the player to not have the combot even if the producer has combot on. --- public/ocr/ocr_main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/ocr/ocr_main.js b/public/ocr/ocr_main.js index 79323497..18bd4f15 100644 --- a/public/ocr/ocr_main.js +++ b/public/ocr/ocr_main.js @@ -2000,6 +2000,9 @@ function getViewURL() { searchParams.set('simultris', 0); searchParams.set('srabbit', 0); searchParams.set('in_producer', 1); + if (QueryString.get('combot', null) !== null) { + searchParams.set('combot', QueryString.get('combot')); + } return `${producer_url.origin}${newPathname}?${searchParams}`; } From b5c32b7248262c8677b36014b3a390f3673c1e85 Mon Sep 17 00:00:00 2001 From: Timothee Groleau Date: Sat, 23 Nov 2024 14:45:49 +0800 Subject: [PATCH 2/2] feat: disable combot in room view, unless player activates it explicitly --- public/ocr/ocr_main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/ocr/ocr_main.js b/public/ocr/ocr_main.js index 18bd4f15..d1f8598b 100644 --- a/public/ocr/ocr_main.js +++ b/public/ocr/ocr_main.js @@ -1999,10 +1999,9 @@ function getViewURL() { searchParams.set('bg', 0); searchParams.set('simultris', 0); searchParams.set('srabbit', 0); + // disable commentator bot, unless the player has specifically activated it + searchParams.set('combot', QueryString.get('combot') === '1' ? '1' : '0'); searchParams.set('in_producer', 1); - if (QueryString.get('combot', null) !== null) { - searchParams.set('combot', QueryString.get('combot')); - } return `${producer_url.origin}${newPathname}?${searchParams}`; }