Manj0tBenipal / kaido

This website is a working demonstration of an anime streaming website and is made for educational purpose only. All the data on this website is retrieved from publicly available sources. It uses consumet, Jikan and Kitsu RestAPIs to retrieve all the Data
https://kaido.vercel.app
MIT License
38 stars 35 forks source link

How do i remove Ads? #1

Closed tejaspanchall closed 1 year ago

tejaspanchall commented 1 year ago

i do want to set any ads on my localhost test, can you tell me how do i remove ads as i am not finding anything for it.

Manj0tBenipal commented 1 year ago

Since I am using third party servers, the control over ads is on them. You can set the state of ad lock enabled to true for now. It's gonna render some of the servers useless but stream wish and filelions will continue to work.

On Thu, Sep 7, 2023, 9:29 AM Tejas Panchal @.***> wrote:

i do want to set any ads on my localhost test, can you tell me how do i remove ads as i am not finding anything for it.

— Reply to this email directly, view it on GitHub https://github.com/Manj0tBenipal/kaido/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZYCZPFKDC5RG6H67ZEACF3XZHD5BANCNFSM6AAAAAA4O5DXAI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tejaspanchall commented 1 year ago

if you can tell me the ads service name that you're using, then it would be much help.

Anyways I don't see any services other then consumet, kitsu, jikan.

So still can't understand and how ads are coming!!

Manj0tBenipal commented 1 year ago

Let me put it into simple words, You can open WatchAnime,jsx in the pages folder under src directory. You can see that there is an iframe element having the episode server's URL as its src attribute. That is a third-party service that is not owned by me. I am using it for fetching episodes because I cannot directly access an episode's video file due to CORS policies and hence cannot implement a custom video player. So I have to rely on these servers and the ads are generated by those servers, not me. You can notice that ads only pop up in the video frame, not on the website itself and you will face redirects only when you click on the iframe element containing video.

tejaspanchall commented 1 year ago

Okay got it, so is there any way to block default ads? I tried the iframe sandbox attribute but it's not working.

Manj0tBenipal commented 1 year ago

The servers will break except the two I mentioned. I have already done that by conditionally rendering iframe based on the state adBlockIsOn. So that's the only way to do it.

On Thu, Sep 7, 2023, 12:53 PM Tejas Panchal @.***> wrote:

Okay got it, so is there any way to block default ads? I tried the iframe sandbox attribute but it's not working.

— Reply to this email directly, view it on GitHub https://github.com/Manj0tBenipal/kaido/issues/1#issuecomment-1710488812, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZYCZPEF56K6OT2YSTIYCQDXZH3YZANCNFSM6AAAAAA4O5DXAI . You are receiving this because you commented.Message ID: @.***>

tejaspanchall commented 1 year ago

can you tell me from which API videos are coming? I have something in my mind to try.

Manj0tBenipal commented 1 year ago

I'm using consumet.ts I'm using the node.js library. There is also a restfulApi of consumet that you can try.

On Thu, Sep 7, 2023, 1:03 PM Tejas Panchal @.***> wrote:

can you tell me from which API videos are coming? I have something in my mind to try.

— Reply to this email directly, view it on GitHub https://github.com/Manj0tBenipal/kaido/issues/1#issuecomment-1710500811, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZYCZPDUHGJP4UQIEDWX2PTXZH45ZANCNFSM6AAAAAA4O5DXAI . You are receiving this because you commented.Message ID: @.***>

tejaspanchall commented 1 year ago

I'm confused, I mean videos are coming from Consumet then why ads are showing, as Consumet doesn't have ads in their resources. lemme contact consumet only.

Manj0tBenipal commented 1 year ago

Look, The API is only responsible for providing you with server URLs. API has no control over how you integrate the server into your app or how the server behaves while being in your app. That's the best example I can give you.

Manj0tBenipal commented 1 year ago

You should read the API documentation try the API and integrate it in your App or fork this repo and understand how it works. and what data it is giving