Page 1 of 1

Can't save (or open)?

Posted: Sat Feb 24, 2018 8:16 am
by admin
Before saving or opening a script in your Google Drive, you need to grant YouMeScript permission with Google. Normally this process happens automatically the first time it's needed, and Google you shows you a pop-up with a button to click. This should only need to happen once, and (as long as you're logged in to your Google account), YouMeScript will be able to communicate with your Drive, saving or opening your scripts.

If you're having trouble, and things aren't working right for you, these are some things to check (and why):
  • Is your browser allowing cookies, or 'third-party' cookies for apis.google.com, accounts.google.com and google.com and similar?
    These are needed so Google's Drive code that runs in YMS knows that you're logged in, and authorized.
  • Is your browser allowing youmescript.com to store data?
    Your options and choices are stored locally in your browser. Once you can successfully use YMS with Drive, they're stored in a special YMS folder in Drive, so they come with you when you change machine. Most browsers combine this permission with cookie permission.
  • Has your browser blocked a pop-up for the page?
    Google's permission dialogue is a pop-up, and though neither YouMeScript nor Google should trigger pop-up blockers, it can happen anyway in some browsers or with over-zealous add-on's. Look for an indication that a pop-up has been blocked.
  • Do you have any browser add-on's that could be changing code or URL's?
    Rogue proxies, and other less-than-transparent or badly written add-on's can try to inject code into your pages. YMS uses strict browser security policies (every good, security-minded website does) which should prevent that code from running, but they can definitely still mess things up. Disable them all and if everything works, re-enable them one-by-one to find the culprit.
  • Is Javascript allowed?
    If you've been able to write anything at all, this almost certainly doesn't apply to you, as YouMeScript and Google's Drive code are written in Javascript. If you have NoScript or similar installed, check it's allowing YMS and Google to run code.
  • Do you have multiple Google accounts? Try (in drive.google.com, say) signing out of all of them, closing all YouMeScript tabs, signing in to one, then opening a new tab, then going to youmescript.com
    Switching between accounts is something that Google's code handles badly. Sometimes different tabs think you're logged in to different accounts, and though you may have granted permission in one account, it doesn't apply to your other ones.
  • Click on "Re-check Google account" in the top YMS menu.
    Google grants a permission 'token' that lasts about an hour, and YouMeScript renews it automatically. If things get messed up for you, it could take an hour for the old token to expire. So this clears the old token, and tries to re-authorize; useful if you've been switching accounts, say.
  • Do you have an institution-, school-, or G-Suite- administered Google account? Take a look at the other "Can't save?" sticky post about this topic.
    It's possible that the admin has disallowed third-party Drive applications (which is any application not written by Google, that works by interacting with files in your Drive).
If you've tried all the things above, then of course email me at support@youmescript.com with the info from your 'Diagnostics' in the top menu. Maybe we'll find something new fun and exciting to add to this list.

- Jake