Skip to content

Commit

Permalink
Merge commit 'refs/pull/1816/head' of https://github.com/xbapps/xbvr
Browse files Browse the repository at this point in the history
…into impatient
  • Loading branch information
vt-idiot committed Aug 4, 2024
2 parents 2e34422 + 27ec45a commit a557870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scrape/navr.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ func NaughtyAmericaVR(wg *sync.WaitGroup, updateSite bool, knownScenes []string,
vm := otto.New()

script := e.Text
script = strings.ReplaceAll(script, "nanalytics.trackExperiment('scene_page_viewed', 'streaming_option_join_button');", "")
script = strings.Replace(script, "window.dataLayer", "dataLayer", -1)
script = strings.Replace(script, "dataLayer = dataLayer || []", "dataLayer = []", -1)
script = script + "\nout = []; dataLayer.forEach(function(v) { if (v.femaleStar) { out.push(v.femaleStar); } });"
Expand Down

0 comments on commit a557870

Please sign in to comment.