creating a style for - a mobile proxy

edited October 2009 in
I'm writing a style for - a mobile proxy.

Mowser - Mobilizing the web

I'm going to use the proxy to try to quickly and easily use stylish on *any* page I end up on.


[link via the mobile proxy] - Listen to the Crazy Vocal Talents Behind Clone Wars - Star Wars - io9

[original link] - Listen to the Crazy Vocal Talents Behind Clone Wars - Star Wars - io9

Note that mowser automatically encodes the url... I use the ordinary url and the encoded url for url-prefix in my "site specific" stylish code. But the code doesn't work. Nothing happens.

@-moz-document url-prefix(""), url-prefix("") { *, stub { background:red !important; } }


Stylish doesn't like the second use of http

this works
@namespace url(; @-moz-document url-prefix("") { *, stub { background:red !important; } }
but if you add a colon and make it it fails
@namespace url(; @-moz-document url-prefix("") { *, stub { background:red !important; } }


  • If you press Preview, does Stylish report an error? It's possible that Firefox's CSS parser doesn't like the URL formatted like that.
  • edited October 2009
    I clicked Preview - but I don't understand how it works.

    I don't know where the error message would be sent to. To
    - the error console?
    - a pop up (or something)?

    The error console was empty - and there was no message.

    If it indeed doesn't work - will you eventually allow those sorts of urls? My javascript is total crap - but I'll see if I can figure out some sort of hack for stylish. I think I can. Did I just say "I think I can"? - don't remind me I said that.
  • edited October 2009
    I'm amazed - I figured out a greasemonkey hack. It creates an attribute - site_specific - based on the original link.

    <div id="mmmcontent" site_specific="">
    Is there any sort of character that might appear in a url that might cause bugs being in site_specific?

    Unless site_specific could be somehow buggy I'll probably expand include for my hack so that it works on many other sites. Allowing a style to regex on the url as easily as as styles regex href or src stuff might prove very useful.

    Example stylish can judge if the original link is
Sign In or Register to comment.