Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some userscripts don't work after the 6.1.232 beta update #1145

Closed
vbagirov opened this issue Jun 27, 2016 · 2 comments
Closed

Some userscripts don't work after the 6.1.232 beta update #1145

vbagirov opened this issue Jun 27, 2016 · 2 comments

Comments

@vbagirov
Copy link
Member

Userscripts in question:

  • YAYS! (Yet Another YouTube Script)
  • Other (will be updated)

Originally from:
https://forum.adguard.com/index.php?threads/11405/

@LenKiMo
Copy link

LenKiMo commented Jun 27, 2016

Same with here.

Example:
Flat_Zhihu v2.3.1 Beta4(https://userstyles.org/styles/108011/flat-zhihu-v2-3-1-beta4)
in site https://zhihu.com or example pages https://www.zhihu.com/question/40985843.

And some other scripts doesn't work out anymore.

System Info:
Windows 10 Pro 64-Bit
Chrome 53.0.2774.3 dev-m (64-bit)

@confessor-adguard
Copy link

Regarding YAYS! - fixed.
Flat_Zhihu v2.3.1 Beta4 - there's nothing to fix there here, the thing is, there is a parameter for that script which tells us to inject it into the webpage's code (@run-at document-start), which we do, before even main style of the website itself. Here lies the problem: later, when main CSS is applied, it redefines some of the injected style's rules (since the latest rule has the priority). Tampermonkey, for instance, takes action a bit later, and adds style after the main website's style.

To fix the problem you can edit the userscript and replace document-start with document-end.

If there are any problems with other userscripts' work - add comments to #1142.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants