You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was not working for me, as it selects the entire div for where all the other posts live as well, I edited your selector to get the parent div the Sponsor post, it got dirty but it does the job, probably someone else can simplify it and integrate it with the extension:
This was not working for me, as it selects the entire div for where all the other posts live as well, I edited your selector to get the parent div the Sponsor post, it got dirty but it does the job, probably someone else can simplify it and integrate it with the extension:
Right, they changed it a couple of days later, you can see my new method here:
Hi, I wanted to make a pull request but the code is too complicated for me
so I'll suggest code improvement for finding sponsored elemnts
run this in facebook webpage console:
this will mark all current ads in english interface .
the new Sponsor label is inside an SVG with a
<use>
element, inside theuse
element theres ashadow root (closed)
element.you cant extract that so you have to follow the
xlink:href
of theuse
, which is always a#gid(number)
, this leads to a<text>
elementthe
innerHTML
of thetext
element is the text inside the original element. if the innerHTML is 'Sponsored' you mark it.hope it helps
The text was updated successfully, but these errors were encountered: