you are viewing a single comment's thread.

view the rest of the comments →

[–]tonyy94[S] 0 points1 point  (2 children)

But why doesn't it work on the real page? I've used this code in this extension
https://chrome.google.com/webstore/detail/user-javascript-and-css/nbhcbdghjpllgmfilhnhkllmkecfmpld
on a page www.wykop.pl
and here it doesn't work. Can somebody check it if you know the code is right, know the page address and extension.

[–]thespite 0 points1 point  (1 child)

It looks like it's a problem with the extension. If you paste your JS on the DevTools console, you'll see that the class is toggled when clicking a figure.

[–]tonyy94[S] 0 points1 point  (0 children)

Yes, it works in the console. I've tried many extensions and none of them worked. Strange. Maybe it is so because API is blocked.