FrostCo / AdvancedProfanityFilter

A browser extension to filter profanity from webpages
GNU General Public License v3.0
163 stars 26 forks source link

roosterteeth.com support #499

Closed ultimatejacob27 closed 1 year ago

ultimatejacob27 commented 1 year ago

Instructions: This template is written in Markdown. Click the "Preview" tab to see what it will look like when submitted. Fill in the applicable sections (you can erase the examples if you'd like). For more information, please see this page.

:movie_camera: The Site

Example: www.roosterteeth.com

:speech_balloon: Subtitle Element/Node

Example:

<div style="position: absolute; inset: 0px; margin: 1.5%;"><div style="direction: ltr; writing-mode: horizontal-tb; unicode-bidi: plaintext; text-align: center; font: 25.29px sans-serif; white-space: pre-line; position: absolute; width: 997.788px; inset: 476.15px 0px 0px; height: 29.6px; background-color: rgba(0, 0, 0, 0);" class="vjs-text-track-cue vjs-text-track-cue-en" lang="en"><div style="color: rgb(255, 255, 255); background-color: rgb(0, 0, 0); position: relative; inset: 0px; display: inline; writing-mode: horizontal-tb; unicode-bidi: plaintext; font-family: sans-serif;">We're all facing Salem together.</div></div></div>

:pencil: Additional notes

Add any other context or screenshots about the request here.

richardfrost commented 1 year ago

Hi @ultimatejacob27, thanks for the suggestion.

Could you give this custom config a try?

{
  "roosterteeth.com": [
    {
      "mode": "elementChild",
      "parentSelector": "div.vjs-text-track-display",
      "subtitleSelector": "div.vjs-text-track-cue > div",
      "tagName": "DIV"
    }
  ]
}

To use this config, paste it into the Custom Sites area (Options page > Audio tab) and click the blue "SAVE" button underneath it. Then, make sure to refresh the tab for the video site (if you have it open still) and it will load this new configuration.

For best results, make sure to remove any custom config used for testing like this once its been included in the official update.

ultimatejacob27 commented 1 year ago

That worked perfectly, thanks!

richardfrost commented 1 year ago

Thanks for reporting back @ultimatejacob27. I'm glad it is working for you! I'll include the site in the next version of the filter. Take care!

richardfrost commented 1 year ago

@ultimatejacob27

This has been included in version 3.2.1. Feel free to comment here if you have any feedback for this update.