Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

[Anti-adblock] ani.gamer.com.tw #280

Open

Description

@lancelot-moon

URLs where this issue occurs (Required)
https://ani.gamer.com.tw/animeVideo.php?sn=11778

Screenshots (Required)
Anti-adblock warning:

Screenshot:

image


Ad video from the beginning:

Screenshot:

image


  1. Need Taiwan IP for watching videos there.
    Please add @@||ani.gamer.com.tw^$generichide for hiding the popup of anti-adblock warning.
    (Just an annoyance. It doesn't forbid users continuing to watch anime videos.)

  2. From the beginning of playing anime video, there is ad video.
    Nano Defender can decrease the countdown of ad video to 3 seconds.
    Generally, the countdown of ad video is 30 seconds.
    Is it possible to perfectly skip the ad video?

For your reference, this is valid script for skipping ad videos on https://ani.gamer.com.tw/

https://greasyfork.org/en
Step 1: install a user script manager
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo

Step 2: install this script for skipping ad videos on https://ani.gamer.com.tw/

https://greasyfork.org/en/scripts/370155-%E8%B7%B3%E9%81%8E%E5%8B%95%E7%95%AB%E7%98%8B%E5%BB%A3%E5%91%8A/code

Activity

  1. changed the title [-][Anti-adblock] ani.gamer.com.tw[/-] [+][Anti-adblock, Ad video] ani.gamer.com.tw[/+] on Mar 2, 2019
  2. changed the title [-][Anti-adblock, Ad video] ani.gamer.com.tw[/-] [+][Anti-adblock, Ads] ani.gamer.com.tw[/+] on Mar 2, 2019
  3. jspenguin2017 commented on Mar 2, 2019

    @jspenguin2017
    Member

    I can't reproduce anti-adblock. As for ads, Nano Defender has a solution for it, but I guess there's no way around the 3 seconds server-enforced timer. That Userscript also has to wait for 3 seconds.

    image

  4. jspenguin2017 commented on Mar 2, 2019

    @jspenguin2017
    Member

    Closing as invalid as you did not fill the template.

  5. lancelot-moon commented on Mar 2, 2019

    @lancelot-moon
    Author

    No, you need to have an account for logining into it first.
    Then you'll see that anti-adblock warning.

    Screenshot:

    image


    Without login, I also won't see that anti-adblock warning.
    You need to add @@||ani.gamer.com.tw^$generichide in your filter.

  6. jspenguin2017 commented on Mar 2, 2019

    @jspenguin2017
    Member

    Ah, OK, I see the code that does that.

        a.prototype.antiBlock = function() {
            var e = t.createElement("div");
            jQuery(e).addClass("afs_ads").html(" "),
            jQuery("body").append(e),
            setTimeout(function() {
                var e = t.getElementsByClassName("afs_ads")
                  , n = e[e.length - 1];
                n && 0 != n.innerHTML.length && 0 != n.clientHeight ? n.style.display = "none" : alert("由於擋廣告插件會影響播放器運作,如果您有安裝,請您將 gamer.com.tw / bahamut.com.tw 網域加入白名單或考慮關閉插件,動畫瘋感謝您的支持!")
            }, 2e3)
        }
  7. lancelot-moon commented on Mar 2, 2019

    @lancelot-moon
    Author

    So, will you add any rules for it?

  8. jspenguin2017 commented on Mar 2, 2019

    @jspenguin2017
    Member

    Already added.

  9. changed the title [-][Anti-adblock, Ads] ani.gamer.com.tw[/-] [+][Anti-adblock] ani.gamer.com.tw[/+] on Mar 2, 2019
  10. 34 remaining items

  11. lancelot-moon commented on Apr 19, 2019

    @lancelot-moon
    Author

    Yesterday, it updated scripts.

    1. 3 sec timer is still valid.
    2. But ad video can't be blocked, and users need to manually click the button of "Click here for skipping ad".
      (Its beta player doesn't have the point 2 issue.)
    Screenshot:

    image


  12. LiCybora commented on Apr 19, 2019

    @LiCybora

    They merge some changes in beta to normal player. The beta solution works for normal player as well now.

  13. jspenguin2017 commented on Apr 19, 2019

    @jspenguin2017
    Member

    How often do they update their player? If it happens every week then we might have a problem.

  14. lancelot-moon commented on Apr 20, 2019

    @lancelot-moon
    Author
    1. Can't normally play videos with Firefox or Kiwi Browser on Android.
      Black screen. (mobile mode)

    2. If swifting mobile browser to desktop mode, a cross on the screen.
      When using desktop browser on PC, sometimes also meet the cross.
      Refreshing page can solve it for desktop browser.
      But refreshing page is useless for mobile browser.

    Screenshot:

    image


  15. lancelot-moon commented on Jul 16, 2019

    @lancelot-moon
    Author

    It seems that your rules are totally failed now.
    With Nano, it doesn't allow playing videos after clicking the skip button.

  16. lancelot-moon commented on Jul 18, 2019

    @lancelot-moon
    Author

    Did you cancel the 3 sec timer for the website, right?
    Now, need to wait for 30 sec of ad video.

  17. jspenguin2017 commented on Jul 19, 2019

    @jspenguin2017
    Member

    The complexity of the fix is too high, and publishing extension updates isn't instantaneous anymore.

    I'll wait until Manifest V3 so I can have configurable content scripts. That way, I can be sure high complexity fixes can be quickly turned off to avoid breakage.

  18. added a commit that references this issue on Jul 23, 2019
  19. LiCybora commented on Jul 24, 2019

    @LiCybora

    3 sec is no more due to their change in server side (now need more time for wait but still better than 30). Rules for beta are still valid for both players.

    Rule is moved to experimental rule in Firefox, as Firefox has already equipped with configurable content scripts and experimental rule can be quickly toggle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions