The Wayback Machine - https://web.archive.org/web/20200602070352/https://github.com/openstyles/stylus/issues/659
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

Impossible de communiquer avec la page. https://**docs**.google.com/ #659

Open
JaxProd opened this issue Jan 31, 2019 · 13 comments
Open

Impossible de communiquer avec la page. https://**docs**.google.com/ #659

JaxProd opened this issue Jan 31, 2019 · 13 comments

Comments

@JaxProd
Copy link

@JaxProd JaxProd commented Jan 31, 2019

  • Browser: chrome
  • Operating System: Windows 10
  • Stylus Version: Version 1.5.2
  • Screenshot:

Hello ,

Il y a un problème avec les sous domaines comme :
https://docs.google.com/
https://drive.google.com/

les URLs http(s)://www.google.com fonctionnent.

Messages d'erreur :

"Impossible de communiquer avec la page. Essayez de recharger l’onglet.
Stylus peut accéder aux URL file:// uniquement si vous cochez la case correspondante pour l’extension Stylus sur la page chrome://extensions."

@Mottie
Copy link
Member

@Mottie Mottie commented Feb 1, 2019

Hello @JaxProd!

I can not reproduce this issue. I created this simple style:

/* ==UserStyle==
@name           google test
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    A new userstyle
@author         Me
==/UserStyle== */
@-moz-document domain("google.com") {
  * {
    color: red !important;
  }
}

And the style is being appled to https://drive.google.com, https://docs.google.com and https://www.google.com/.

Please share the style you are using.

@JaxProd
Copy link
Author

@JaxProd JaxProd commented Feb 6, 2019

The issue only occure with https://drive.google.com domain :

Screenshot :

@JaxProd
Copy link
Author

@JaxProd JaxProd commented Feb 6, 2019

Strange thing, with the same URL Stylus can overide the CSS when i click on link but when i type it stylus doesn"t work.

Maybe google drive destock app overide the URL to rewrite URL with desktop app target... ?

@Mottie
Copy link
Member

@Mottie Mottie commented Feb 6, 2019

It works for me

2019-02-06 07_15_51-my drive - google drive

What do you mean "when i type it stylus doesn"t work"? Are you adding a custom "Applies to" domain or regexp?

@JaxProd
Copy link
Author

@JaxProd JaxProd commented Feb 6, 2019

if i click on links : https://drive.google.com, https://docs.google.com it work
but if i copy past or type URLs it doesn't work, I think it's due to google desktop apps or extensions. (...?)

@JaxProd
Copy link
Author

@JaxProd JaxProd commented Feb 6, 2019

I think here is the problem
when I disable this chrome extension it works for docs.google.com :
image

image

@JaxProd
Copy link
Author

@JaxProd JaxProd commented Feb 6, 2019

And for drive.google.com It works if I disable the offline mode :

image

@Mottie
Copy link
Member

@Mottie Mottie commented Feb 6, 2019

Hmm, I have to run, but maybe @eight04 has an idea?

@JaxProd
Copy link
Author

@JaxProd JaxProd commented Feb 6, 2019

After tests the problem still occure... :/ :'(

@eight04
Copy link
Collaborator

@eight04 eight04 commented Feb 6, 2019

Can you post the link to the "Google Docs hors connexion" extension?

@JaxProd
Copy link
Author

@JaxProd JaxProd commented Feb 11, 2019

@eight04
Copy link
Collaborator

@eight04 eight04 commented Feb 12, 2019

I can't reproduce.

  • Windows 7
  • Chrome Version 74.0.3703.0 (Official Build) canary (64-bit)
  • Stylus 1.5.2
  • Google Docs Offline 1.7
  • Sync Google Docs, Sheets, Slides & Drawings files to this computer so that you can edit offline is checked.

Can you test if other extensions (e.g. Tampermonkey) are also broken on these pages? If this affects all extensions, it might be a Chrome bug.

Also please post the browser version number.

I think it's due to google desktop apps

What is this?

@trefrog
Copy link

@trefrog trefrog commented Apr 28, 2019

I figured out what "desktop apps" refers to, and I have solved this problem for myself. In my case, it had nothing to do with the offline Google Drive setting/extension, but just the fact that this "app" is "installed". From what I can tell, it's merely a shortcut to Drive... except it must be handled in a special way internally, which for some reason conflicts with Stylus. As soon as I uninstalled it, my styles came back.

image

This "app" can be "installed" from this page: https://chrome.google.com/webstore/detail/google-drive/apdfllckaahabafndbhieahigkjlhalf

it doesn't appear to give any special functionality. These "desktop apps" can be created as shortcuts, with the option to open in their own window without tabs and tool bars (eg. my "$$$} 2018 {$$$" spreadsheet), giving them the feel of an independent app. When such a desktop shortcut is created, it's also placed on this page, and is somehow integrated with the shortcut that was created. My having the spreadsheet "app" created doesn't affect Stylus. Just the Google Drive "app"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.