[SOLVED] Disable Cursor Blinking in Google Docs

Discussion of general topics about Mozilla Firefox
Post Reply
b4ckerCrazyMit
Posts: 39
Joined: July 10th, 2022, 3:43 am
Location: Moz Office, SF, USA
Contact:

[SOLVED] Disable Cursor Blinking in Google Docs

Post by b4ckerCrazyMit »

Hello fellow firefox user/mozillian, is there anyway to disable cursor blinking in Google docs? I do disable cursor blinking in entire system, but in Google Docs in Firefox, it seems still.. broken... ](*,)

Is there anyway to disable it? Probably from UserJS/Tampermonkey, or anything?

Thank you
Last edited by b4ckerCrazyMit on July 9th, 2023, 7:58 pm, edited 1 time in total.
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Disable Cursor Blinking in Google Docs

Post by morat »

Google Docs uses canvas based rendering so you can't style the caret like you can on Google's main page.

Code: Select all

/* Firefox userContent.css */

@-moz-document url-prefix("https://docs.google.com"), url-prefix("https://www.google.com") {
  * { caret-color: red !important; }
}
Google Docs uses canvas based rendering
http://workspaceupdates.googleblog.com/ ... pdate.html
http://zapier.com/blog/google-docs-canv ... rendering/

Google's code is minified so it would be difficult to try to figure out how the caret works.
b4ckerCrazyMit
Posts: 39
Joined: July 10th, 2022, 3:43 am
Location: Moz Office, SF, USA
Contact:

Re: Disable Cursor Blinking in Google Docs

Post by b4ckerCrazyMit »

Ouch, this is first time I know that Docs move to blinking..

Thanks for pointing out. I just inspect the page element... :/

EDIT:

The code on the UserStyles seems work

Code: Select all

.docs-text-ui-cursor-blink
  {
    animation-name: none;
  }
Source: https://userstyles.org/styles/125112/go ... rsor-blink
morat
Posts: 6421
Joined: February 3rd, 2009, 6:29 pm

Re: Disable Cursor Blinking in Google Docs

Post by morat »

Nicely done.

Similar thread
http://stackoverflow.com/a/43751901

Hmm. I tried the following style, but it didn't work for me.

Code: Select all

/* Firefox userContent.css */

@-moz-document url-prefix("https://docs.google.com") {
  * { animation: none !important; }
}
Adding the entry inside the style element successfully stops the animation in the following example.

Example
http://www.w3schools.com/cssref/tryit.p ... ation-name
b4ckerCrazyMit
Posts: 39
Joined: July 10th, 2022, 3:43 am
Location: Moz Office, SF, USA
Contact:

Re: Disable Cursor Blinking in Google Docs

Post by b4ckerCrazyMit »

morat wrote: June 6th, 2023, 6:27 am Nicely done.

Similar thread
http://stackoverflow.com/a/43751901

Hmm. I tried the following style, but it didn't work for me.

Code: Select all

/* Firefox userContent.css */

@-moz-document url-prefix("https://docs.google.com") {
  * { animation: none !important; }
}
Adding the entry inside the style element successfully stops the animation in the following example.

Example
http://www.w3schools.com/cssref/tryit.p ... ation-name
Seems they use shadow dom or IFRAME I guess?

At least for now that hack using userstyles work.

Thanks for sharing!
Post Reply