maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   userContent.css Edit? (https://talk.maemo.org/showthread.php?t=24752)

YoDude 2008-11-04 15:22

userContent.css Edit?
 
MicroB in Diablo works very well for me. Between Flash and HTML I have been able to make locally stored pages that provide me with information that makes the tablet very useful. I hope to post examples soon.

However, there are two domains that I access frequently that usually require that I increase zoom to 150% so that images are viewable from the windsheild mount while driving.

Is there a way to edit the userContent.css so that the view for pages from just these two domains is increased automatically?

If so, can someone provide an an example of the code that should be inserted in userContent.css?

iamthewalrus 2008-11-04 18:27

Re: userContent.css Edit?
 
try this ; replace 'somesite.com' with the actual domain:
Code:

@-moz-document domain(somesite.com) {
    img{width: 150%; height: 150% !important }
}


lm2 2008-11-04 19:31

Re: userContent.css Edit?
 
@ iamthewalrus: Is there a way to tweak this to make X% the default zoom for any page microB accesses?

iamthewalrus 2008-11-04 20:17

Re: userContent.css Edit?
 
Yes if you leave out the @-moz....} brackets all images will be 150%, so like this
Code:

img{width: 150%; height: 150% !important }
Also see the web section of the old wiki. Be quick because this wiki will be close down and I'm too lazy to copy it to the new one.

Benson 2008-11-04 21:37

Re: userContent.css Edit?
 
Quote:

Originally Posted by iamthewalrus (Post 239353)
Yes if you leave out the @-moz....} brackets all images will be 150%, so like this
Code:

img{width: 150%; height: 150% !important }
Also see the web section of the old wiki. Be quick because this wiki will be close down and I'm too lazy to copy it to the new one.

No, you're confused. The old maemo.org wiki is being closed in favor of the new maemo.org wiki. The itT wiki is not being closed, but one of the major reasons for its existence and use was how bad the maemo.org wiki was. It's generally deprecated by maemo.org people since they brought the new one up.

lm2 2008-11-04 21:43

Re: userContent.css Edit?
 
Sorry, I meant to ask if there was a way to have the WHOLE PAGE rendered at X%, not just the images...???

YoDude 2008-11-04 22:08

Re: userContent.css Edit?
 
Quote:

Originally Posted by iamthewalrus (Post 239331)
try this ; replace 'somesite.com' with the actual domain:
Code:

@-moz-document domain(somesite.com) {
    img{width: 150%; height: 150% !important }
}


'GOO GOO G'JOOB!

Thanks for jumpstartin' my brain cells. :)

Benson 2008-11-04 22:17

Re: userContent.css Edit?
 
Well, you can do something like body {font-size: 150% !important} (off-hand, syntax not guaranteed.), I think.

briand 2008-11-04 22:21

Re: userContent.css Edit?
 
if the van don't come, you'll get your tan from standing in the english rain.

iamthewalrus 2008-11-04 22:23

Re: userContent.css Edit?
 
Quote:

Originally Posted by lm2 (Post 239377)
Sorry, I meant to ask if there was a way to have the WHOLE PAGE rendered at X%, not just the images...???

What do you by 'mean render the page at X%?' Do 'you mean zoom in so that it becomes wider than the screen'? Or just larger fontsize and images but width adjusted to the screen? Latter is explained in the wiki like I said.

lm2 2008-11-04 22:26

Re: userContent.css Edit?
 
thanks Benson. My wish is to make all files with paths that begin with "file:/" open at 150% font-size. Any tips on making that happen....?

lm2 2008-11-04 22:28

Re: userContent.css Edit?
 
Quote:

Originally Posted by iamthewalrus (Post 239391)
What do you by 'mean render the page at X%?' Do 'you mean zoom in so that it becomes wider than the screen'? Or just larger fontsize and images but width adjusted to the screen? Latter is explained in the wiki like I said.

I'd like to know how to have all pages render thus: what they would look like if I were a normal user who opened a page, selected "fit width to view," and then zoomed to 150%.

I realize that the question I just asked Benson is a different question. I'd love an answer to both.

Benson 2008-11-04 22:36

Re: userContent.css Edit?
 
Code:

@-moz-document url-prefix(file:/) {
  body {font-size: 150% !important}
}


lm2 2008-11-04 22:37

Re: userContent.css Edit?
 
Thank you!!!!!!

Benson 2008-11-04 22:41

Re: userContent.css Edit?
 
Not sure on exactly simulating 150% zoom; combining my body line, iamthewalrus's img line, and maybe also applying the width and height to the body would be a first approximation, but frankly I don't like the way sites overrun the screen when zoomed, and usually could get by much happier with a text-only zoom than the whole-page zoom...

iamthewalrus 2008-11-04 22:48

Re: userContent.css Edit?
 
I set my browser to minimum 20 points fontsize, automatically fit to width using css and not show horizontal or vertical scrollbars ever...it's all in the wiki.

YoDude 2008-11-25 15:18

Re: userContent.css Edit?
 
Thanks to all for their input...

My UserContent.css now looks like this.

Code:

@-moz-document url-prefix(http://www.6abctogo.com/) {
    img {display: none !important }
}

@-moz-document url-prefix(http://207.251.86.248) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://www.6abctogo.com/) {
  body {font-size: 150% !important}
}

@-moz-document url-prefix(http://164.156.16.43/public/) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://www.ssec.wisc.edu/data/paw/) {
    img {width: 100%; height: 100% !important }
}

@-moz-document url-prefix(http://www.ssec.wisc.edu/data/paw/) {
  body {font-size: 180% !important}
}

@-moz-document url-prefix(http://www.marketwatch.com/m/) {
  body {font-size: 150% !important}
}

@-moz-document url-prefix(http://www.marketwatch.com/m/) {
    img {display: none !important }
}

@-moz-document url-prefix(http://m.reference.com/) {
  body {font-size: 180% !important}
}

@-moz-document url-prefix(http://imode.langtolang.com/) {
  body {font-size: 180% !important}
}

@-moz-document url-prefix(http://sunset.ci.sunnyvale.ca.us/airpac/) {
  body {font-size: 150% !important}
}

@-moz-document url-prefix(http://mobile.usa.gov/) {
  body {font-size: 180% !important}
}

@-moz-document url-prefix(https://mail.google.com/mail/x/) {
  body {font-size: 150% !important}
}

@-moz-document url-prefix(http://lyrics.twilightwap.com/) {
  body {font-size: 180% !important}
}

@-moz-document url-prefix(http://lyrics.twilightwap.com/) {
    img {display: none !important }
}

@-moz-document url-prefix(http://wapedia.mobi/) {
  body {font-size: 180% !important}
}

@-moz-document url-prefix(http://www.google.com/gwt/) {
  body {font-size: 180% !important}
}


@-moz-document url-prefix(http://www.apnews.com/ap/) {
    img {display: none !important }
}


@-moz-document url-prefix(http://m.cnn.com/) {
    img {display: none !important }
}

@-moz-document url-prefix(http://www.hopstop.com/pda) {
  body {font-size: 200% !important}
}

@-moz-document url-prefix(http://www.hopstop.com/pda) {
    img {display: none !important }
}

@-moz-document url-prefix(http://mobile.flightstats.com/) {
  body {font-size: 180% !important}
}


@-moz-document url-prefix(http://mobile.flightstats.com/) {
    img {display: none !important }
}

As you can see, quite a few entries :eek:

My question is, knowing that many of these url's have both a font and image size command, and knowing that I will pro'ly be adding more;..

Is there a more elegant way to do this?

YoDude 2009-02-12 13:27

Re: userContent.css Edit?
 
Hey all. I hope you see this thread again...

Is there a command that can be placed in userContent.css that redirects to another page...

For instance; the status bar app mnotify has an in-box link that opens the browser to page X. When it does this, I would rather be sent to page Y.

lm2 2009-02-12 14:43

Re: userContent.css Edit?
 
While we're at it, how about this:

I would like all www.nytimes.com urls to open in new page as http://www.google.com/gwt/n?u=http://www.nytimes.com...

Doable?

YoDude 2009-02-13 16:00

Re: userContent.css Edit?
 
Quote:

Originally Posted by lm2 (Post 263963)
While we're at it, how about this:

I would like all www.nytimes.com urls to open in new page as http://www.google.com/gwt/n?u=http://www.nytimes.com...

Doable?


^That may be possible editing the "Hosts" file found in /etc/hosts

and adding a rule like one of >> These... once you find the IP addy of www.nytimes.com

However, since you wish to re-direct to a hosts specific sub-directory @ www.google.com you may be in the same boat as me. I never tried it that way. (I wish to re-direct from a specific hosts sub-directory.)

BrentDC 2009-02-13 17:02

Re: userContent.css Edit?
 
Ok, I'll add another Q...

Is there any way to set the User-Agent on a site-by-site basis with the custom CSS? I tried a while back...and failed.

GeraldKo 2009-02-13 17:18

Re: userContent.css Edit?
 
Quote:

Originally Posted by BrentDC (Post 264276)
Ok, I'll add another Q...

Is there any way to set the User-Agent on a site-by-site basis with the custom CSS? I tried a while back...and failed.

I don't think you can do that, but I think these may be jobs for Greasemonkey.


All times are GMT. The time now is 21:03.

vBulletin® Version 3.8.8