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

Code-Folding only works when refreshing file #146

Closed
ACH1980 opened this issue Jun 6, 2021 · 7 comments
Closed

Code-Folding only works when refreshing file #146

ACH1980 opened this issue Jun 6, 2021 · 7 comments

Comments

@ACH1980
Copy link

ACH1980 commented Jun 6, 2021

Code-Folding works fine, but everytime when I open a new file the functionality isn't there, I need to refresh the file and then it's functioning. The script was loaded on the first loading too but only worked after reloading...

@innateessence
Copy link

innateessence commented Jun 18, 2021

This may be relevant to #153
I can confirm I am experiencing this behavior as well

@innateessence
Copy link

@ACH1980
Copy link
Author

ACH1980 commented Jun 19, 2021

This may be relevant to #153
I can confirm I am experiencing this behavior as well

No, the code is there, but can't be folded...

Looks like the solution is here: https://stackoverflow.com/questions/17862394/my-userscript-only-works-when-the-page-is-refreshed-or-on-iframes-not-the-main
Although this may be dated info

I'll have a look, give me a moment...

@innateessence
Copy link

This may be relevant to #153
I can confirm I am experiencing this behavior as well

No, the code is there, but can't be folded...

The core problem is the same, Script X not running until the page is refreshed.

@ACH1980
Copy link
Author

ACH1980 commented Jun 19, 2021

Yep, seems to be that problem... I don't have an idea how to fix, other then executing the code regularly even if no page was loaded (have done this for several scripts on .io-Games, but it could be a bit to heavy for github Scripts)... Maybe the devs have another idea? I'll close this one as it already exists and will post a summary in the other issue...

@ACH1980 ACH1980 closed this as completed Jun 19, 2021
@innateessence
Copy link

innateessence commented Jun 19, 2021

It's a good idea to provide a link to this issue as well by typing '#' + Issue number in whatever issue you want to post it on.

@ACH1980
Copy link
Author

ACH1980 commented Jun 19, 2021

Yeah I know and will do so! :)

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

No branches or pull requests

2 participants