top of page

Working on Different Websites

  • traceyourtrack
  • May 9, 2016
  • 1 min read

After showing the "index.html" successfully on some websites, we revealed that the extension sometimes cannot work well. For example, it blocks the ads without replacing the ad with the file. Therefore, we looked into each script to find out the problem.

When the extension is running on YouTube, it is working on the front page, but it only blocks the ads on search results and video-watching pages without showing the replacement. There are two specific filters written for ads on YouTube. The first is for div id called "sidebar-ads" while another one is designed for the video ads. In the original script, the filter removes the div id, so we use .addClass to add the class for creating the replacement.


 
 
 

Comments


Recent Posts

© 2016 By Choi Ka Man & Ngai Po Yiu

bottom of page