View Single Post
Old 09-17-2017, 05:53 PM  
tomash999
Confirmed User
 
Industry Role:
Join Date: Sep 2015
Posts: 88
@gotonudecom to answer your question about AdBlock, yes it is possible.

You can check with JavaScript if the object available in the page, if not, tell the user to enable ads. It will save money on traffic.

ex.

````
<script>
// The code that they give you to load their ads
var mAdsProvider = ....
mAdsProvider.load()

// Your code
if !window.mAdsProvider.didLoad() {
alert('AdBlock is active')
} else {
window.loadAllTheVideosNow()
}
</script>
````

Other than that:
* Some AdBlock software does not work on iFrame
* Some tube sites proxy ads from their server (ex. iframes) , and blocking the ads will block the tube's content.
tomash999 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote