1

I want to create a Stylish script, for Google Chrome that will change the notes <textarea> size on the Google Tasks page.

The element I want to style is:

<textarea id=":2.notes-editor" class="l lc" rows="5" style=""></textarea>


Currently my Stylish script looks like this.

#2.notes-editor{
height:100px;

}

url: https://mail.google.com

For some reason it is not working.

Brock Adams
  • 90,639
  • 22
  • 233
  • 295
arboles
  • 1,321
  • 4
  • 20
  • 39
  • 1
    Chrome provides lousy support for iframes that don't have an https? `src`. So, currently, Stylish does not work on such frames and it's more than a pain to try and script for them. You'll need to write an extension or userscript (not Stylish script), that recursively handles iframes. The node you want is a couple iframes deep. I might post an answer showing how to do this, if I feel frisky. – Brock Adams Feb 06 '13 at 05:42

1 Answers1

0

Did you try forcing it with !important?

#2.notes-editor{
    height:100px !important;
}

If this doesn't work, maybe its because the textarea is inside an iframe (I've read that the css styling inside an iframe on Chrome isn't working as expected).

Adonis K. Kakoulidis
  • 4,951
  • 6
  • 34
  • 43
  • Then the problem might be due to the iframe. Try using that userstyle without a domain restriction and see if that forces the iframe to render it. Or maybe get the iframe reference link and include that url in the userstyle as well. – Adonis K. Kakoulidis Feb 06 '13 at 02:39
  • it may be an iframe issue. not sure – arboles Feb 06 '13 at 02:39
  • Also, i just noticed that the id of the textarea is `:2.task-editor`. Have you tried using the classes instead? Something like `textarea.l.H { }` – Adonis K. Kakoulidis Feb 06 '13 at 02:43
  • 1
    ya i tried with the classes and it also doesnt work, and i tried with the `:2.notes-editor` and it doesnt work. this website has a [discussion about this iframe issue.](http://forum.userstyles.org/discussion/33441/tinymce-and-chromefirefox-differences) – arboles Feb 06 '13 at 02:46