문제

Adblock Plus uses XPCOM to block ads requests i.e., using content policy object. It seems like XPCOM is available only for firefox browser. How does Adblock plus do the same for chrome and safari.

도움이 되었습니까?

해결책

Well, you can study the source code of Adblock Plus: https://github.com/adblockplus/adblockpluschrome

I guess the high-level answer would be chrome.webRequest API (and its upcoming update chrome.declarativeWebRequest), which allows to intercept requests and deny/modify them.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top