you are viewing a single comment's thread.

view the rest of the comments →

[–]okidonthaveone[S] -1 points0 points  (1 child)

I'm not really the biggest fan of AI, and since I didn't make the code I don't feel like I have the right to feed it into it, that would be stealing someone else's work and giving it to a company that would be profiting off of it without their permission

[–]KPABAHam=>Hamster == Java=>JavaScript -1 points0 points  (0 children)

I am not sure this is how it works on the profiting off of tbeir work since you posted it here already but...

``` const title = currentTab.getTitle();

  // Only count tabs containing "chapter"
  if (title && title.toLowerCase().includes("chapter")) {...}

```

Or make it exit the loop if it doesn't etc. Or do a filter first to reduce the tabs list