FrostCo / AdvancedProfanityFilter

A browser extension to filter profanity from webpages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Muting for Hidive

Commonman7 opened this issue · comments

Is there any way to add Hidive for audio muting

Here are the details I found:

<div class="rmp-content">
  <video class="rmp-object-fit-contain rmp-video" tabindex="-1" crossorigin="use-credentials" x-webkit-airplay="allow" playsinline="true" src="<Redacted>"></video>
  <div class="rmp-cc-area" style="display: block; width: 1140px; height: 641px;">
    <!-- node -->
    <div class="rmp-cc-container" style="position: absolute; inset: 0px; margin: 1.5%;">
      <div class="rmp-cc-display" style="text-align: center; font: 30.34px Roboto, Arial, sans-serif; white-space: pre-line; position: absolute; direction: ltr; writing-mode: horizontal-tb; inset: 467.234px 0px 102.578px; width: 1105.81px; height: 37px;">
        <div class="rmp-cc-cue" style="color: rgb(255, 255, 255); background-color: rgba(0, 0, 0, 0.8); position: relative; inset: 0px; display: inline; writing-mode: horizontal-tb; unicode-bidi: plaintext;">
          <span class="Subtitle-C2_1">We'll destroy this world,</span>
        </div>
      </div>
      <div class="rmp-cc-display" style="text-align: center; font: 30.34px Roboto, Arial, sans-serif; white-space: pre-line; position: absolute; direction: ltr; writing-mode: horizontal-tb; inset: 509.719px 0px 60.0938px; width: 1105.81px; height: 37px;">
        <div class="rmp-cc-cue" style="color: rgb(255, 255, 255); background-color: rgba(0, 0, 0, 0.8); position: relative; inset: 0px; display: inline; writing-mode: horizontal-tb; unicode-bidi: plaintext;">
          <span class="Subtitle-C2_2">made by a stupid!</span>
        </div>
      </div>
    <div>
    <!-- end node -->
  </div>
</div>

Could you give this config a try? To test this, you can copy-paste the following code to the "Custom Sites" area found in the extensions Option's page > Audio tab. After pasting it in there, click the blue "Save" button, and then refresh/open a new tab to the video site and give it a try. If it works, I'll go ahead and add it to the official list of supported sites.

{
  "www.hidive.com": [
    {
      "className": "rmp-cc-container",
      "mode": "element",
      "subtitleSelector": "div.rmp-cc-cue > span",
      "tagName": "DIV"
    }
  ]
}

Thanks @Commonman7 for reporting back! Let me know if you notice any issues with it.

I'll get it added to the next version of the extension.

This was added in Version 2.34.1. Thanks again for the suggestion @Commonman7.