-
Notifications
You must be signed in to change notification settings - Fork 136
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
stylish intermittently stops applying to links opened to new tabs in Safari 11 #34
Comments
I've tried to right click and open link in new tab on Userstyles.org website - styles works fine. Can you try? |
I've been having this happen to me lately too. |
Can you open inspector and search for |
So, clicking the link (intermittent). But works after page refresh |
Well, the problem is that style page doesn't work for me in any browser - https://userstyles.org/styles/118049/reddit-dark-naut-style |
I can't debug without exact style here. Can you export your stylish settings and share it? |
lol github wont let you attach .json files. had to zip it |
txt version stylish-export.json.txt |
Works fine for me in latest Safari. Can you check your console for errors and try to disable any other extensions just for test. |
So, something blocked in your browser and prevent |
If a blocked |
I disabled my firewall. But it looks like Reddit is trying to load in ads that are getting blocked by the domain origin policy in Safari. So it's just calling that https://tpc.googlesyndication.com/ domain over and over. Which is the only error, just repeats endlessly. Going to turn my firewall back on now, wow... |
I've tried to debug whats going on here and released version 2.0.3 (can be downloaded on my website https://sobolev.us/stylish) and already submitted to Apple gallery. |
@350d Thanks for looking into this! I'm looking for the 2.0.3 version but I can't find it on the link you provided and I'm not seeing an update on the Apple site. |
Direct link http://sobolev.us/download/stylish/stylish.zip |
@350d Thanks! I downloaded that and unzipped the extension. When I click "trust" in the Safari extensions window it doesn't seem to be showing up. |
Hi @350d. Again thanks for looking into this! I was able to get the updated 2.0.3 installed. Not sure what the issue was before. Unfortunately the random/intermittent issue with the theme style not applying is still happening in 2.0.3 and still seems to be related to the The theme I am testing with is here; https://userstyles.org/styles/123493/reddit-modified-dark-carbon Also this appears to only happen if you are logged into Reddit and I can duplicate the issue fairly easily when browsing https://www.reddit.com/new/ And I am using/clicking the "comment" link to duplicate this. The links look like this that are causing the issue. https://www.reddit.com/r/formula1/comments/78bi1b/question_about_mex_gp_how_do_you_get_from/?utm_content=comments&utm_medium=new&utm_source=reddit&utm_name=frontpage |
In my tests your style is always on page and looks like this is a css issue. I've tried to move this style to external css file and include it in Safari Settings - Advanced - Style Sheet and get this page layout: Same result I have with style enabled via Stylish: Maybe subreddit styles overrides custom css in this case? |
You have to be logged in and you have go to https://www.reddit.com/prefs/ More importantly I was only able to reproduce the issue when logged in. When logged out, it seems to apply just fine with messed up styling ofc. Again, it has to do with https://github.com/350d/stylish/blob/master/stylish.safariextension/assets/script.js#L108 I was hoping the PR I opened would help shed some light on the issue and maybe we can come up with a better way to fix the problem. Regardless, I can reproduce it pretty easily on reddit after a few clicks to the comment sections. Sometimes it takes 1 click others 5-7. It all depends if that |
@k3mist m.location is a copy of d.href sended back to injected script from global script without any modification. it can't be different. The only possible chanсe is if address was changed in realtime after ping was happened from injected script and before pong was received from global script. I can try to sign every ping/pong sessions with some unique hash to avoid collisions and if your right - it will help. On that page you send me - you have few reddit iframes with the same domain name in src. Looks like you tried to debug few instances of injected script same time. |
I have not looked at This is a gist of the changes I made in Here's a better screenshot debugging with the |
Ok, try version 2.0.4 |
@350d Seems to be fixed with 2.0.4! Nice! Thanks for taking the time on this. |
I have same problem with firefox 57,0,2 and stylish version 3,0,1 |
@trigger-death Better report it to Firefox version ;) |
Oh my bad. >.< Sent it to the right place and deleted the comment. |
if i have a window that has a stylish theme in use, and then click on a link that opens in a new tab, the stylish theme intermittently is not applied, even if the green 'enabled' icon is displayed
The text was updated successfully, but these errors were encountered: