FrostCo / AdvancedProfanityFilter

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

Audio Muting: AMC+ #478

Closed richardfrost closed 1 year ago

richardfrost commented 1 year ago

:movie_camera: The Site

https://www.amcplus.com/

:speech_balloon: Subtitle Element/Node

Example:

<div class="vjs-text-track-display" translate="yes" aria-live="off" aria-atomic="true">
  <div style="position: absolute; inset: 0px; margin: 1.5%;">
    <div class="vjs-text-track-cue vjs-text-track-cue-en" lang="en" style="direction: ltr; writing-mode: horizontal-tb; unicode-bidi: plaintext; text-align: center; font: 56.32px sans-serif; white-space: pre-line; position: absolute; width: 1860.47px; inset: 996.469px 0px 0px; height: 130px; background-color: rgba(0, 0, 0, 0);">
      <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;">
        What do you mean,
        you saw him?
      </div>
    </div>
  </div>
</div>
richardfrost commented 1 year ago

Suggested config:

{
  "www.amcplus.com": [
    {
      "mode": "element",
      "subtitleSelector": "div.vjs-text-track-cue > div",
      "tagName": "DIV"
    }
  ]
}
richardfrost commented 1 year ago

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