stargeek
PHP news website logo.
home    PHP scripts    articles    seo tools    links    search    contact    shop    realtors


Per-site user stylesheets







Per-site user stylesheets

Per-site user stylesheets 07/14/2004 07:03 PM

I've been thinking a lot about per-site user stylsheets recently. Eric Meyer's CSS signatures are great for sites that support them (as this site does), but the sites that really need altering are highly unlikely to carry them. I posted a comment to that effect on photomatt.net a while ago, and thankfully it was spotted by Ryan Tomayko who has published a simple brilliant hack that uses XBL in Mozilla's user stylesheet to execute JavaScript which adds a CSS signature to every site you visit.

I suggest making a couple of minor modifications to Ryan's code. Firstly, it over-writes any existing body tag IDs which could cause problems on the few sites that use a body ID as a hook for per-page styling. I would recommend not over-writing the ID if it already exists, or adding an additional class to the body element instead. More importantly, Ryan's technique couples your browser's user stylesheet to an XBL file hosted on his server. Not only is this a performance menace (for both his server and potentially your browser) but it opens a cross-site scripting vulnerability in that you are executing code from outside your control every time you visit a web page. I recommend hosting the XBL file locally instead, although the best solution would be to upgrade Ryan's hack to a fully self-contained FireFox extension.

Quibbles aside, it's a brilliant workaround. Be sure to check out the comment from michael on photomatt.net as well.




This is a GrokNews Entry: (what is grok?)





Similar Items

Per-site user stylesheets

Grok Headline matches for Per-site user stylesheets

Site specific stylesheets in Mozilla


Site specific stylesheets in Mozilla 08/18/2004 10:41 PM

New in Mozill a 1.8 Alpha 3: bug 238099 - implement at-rule for matching on site/document URL. Here's the example:

@-moz-document
url-prefix(http://www.mozilla.org/) {
  #q { background: white ! important; color: black ! important; }
}

Drop that in your userContent.css file for black-on-white search fields, but only for pages with URLs starting in http://www.mozilla.org/. Two other selection functions are available: domain(mozilla.org) for all page (and sub-domains) of the mozilla.org domain and url(http://www.mozilla.org/) for just the page matching that exact URL.

The sooner this makes it in to Firefox the better.


New GarageBand User Site


New GarageBand User Site 01/16/2004 10:58 AM
A new site dedicated to providing news, information, help, and discussion related to Apples' GarageBand music software has been launched. GBUsers.com offers unique analysis and reviews of GarageBand-related topics and welcomes all users interested in learning more about creating music with Apple's new killer app.

Like Pixels? Check out MacDesign

New User Conversion Site Online


New User Conversion Site Online 08/06/2004 08:01 PM

e107 web portal user.php XSS (Cross Site
Scripting)


e107 web portal user.php XSS (Cross Site
Scripting)
05/24/2004 12:35 PM
Chris Norton (May 22 2004)

Photoshop Elements User site, newsletter
launched


Photoshop Elements User site, newsletter
launched
09/15/2004 04:53 PM
To coincide with the introduction of Adobe Photoshop Elements 3.0, KW Media Group today announced the launch of a new Web site and newsletter dedicated to popular image editing software...

Web Site Flaws Let Spammers, Phishers
Build User Profiles


Web Site Flaws Let Spammers, Phishers
Build User Profiles
06/05/2005 11:32 PM

CA World: New Wireless Site Management
software draws user interest


CA World: New Wireless Site Management
software draws user interest
05/25/2004 04:31 PM
At CA World 2004 yesterday, Computer Associates International unveiled several new products, including software to secure enterprise wireless LANs and new Web Services Distributed Management software.

Wells Fargo's Internet exec makes its
site user-friendly and an effective
sales tool


Wells Fargo's Internet exec makes its
site user-friendly and an effective
sales tool
12/27/2003 09:04 AM
San Jose Mercury News Dec 27 2003 8:06AM ET

"Blosxom: Think of it as cat(1) with
stylesheets"


"Blosxom: Think of it as cat(1) with
stylesheets"
03/11/2003 09:43 AM
A simply fab review of Blosxom appears as a sidebar (read: 1/2-pagebar) to an article titled "Building with Blogs" in the March issue of Linux Journal.

In "Blosxom: Think of it as cat(1) with stylesheets," Don Marti writes:

Time to look at Rael Dornfest's Blosxom, which might be described as blogging UNIX-style.
...
The fun part about Blosxom isn't what it does in that first 15 minutes--it's what you'll end up doing to yours in the first 15 days. A bas les cookie-cutter blogs! Vive le Blosxom!
I just love hearing peoples' take-away from their experiences with Blosxom. To some, it's the simplicity of writing, as nature intended, in your favourite text editor. Others can't wait to get their hands on those perl-ish innards. Ever my favourite is "It's like a weblog haiku on my iBook."

DocBook XSL Stylesheets 1.66.0


DocBook XSL Stylesheets 1.66.0 09/15/2004 01:35 PM
DocBook stylesheets, schemas, documentation, and resources.

DocBook XSL Stylesheets 1.64.0


DocBook XSL Stylesheets 1.64.0 12/15/2003 06:54 PM
DocBook stylesheets, schemas, documentation, and resources.

Utility Stylesheets


Utility Stylesheets 04/09/2004 04:09 PM
In Bob DuCharme's latest Transforming XML column he shares several small stylesheets that follow a common design pattern.

DocBook XSL Stylesheets 1.64.1


DocBook XSL Stylesheets 1.64.1 12/19/2003 01:07 PM
DocBook stylesheets, schemas, documentation, and resources.

True Believers: Behold The Microsoft
User Network, A Microsoft Fan Site


True Believers: Behold The Microsoft
User Network, A Microsoft Fan Site
11/03/2003 01:27 PM
Mac Observer Nov 3 2003 12:01PM ET

User interface design for web
applications: It’s a different world
from web site design


User interface design for web
applications: It’s a different world
from web site design
11/13/2003 04:16 AM

User Interface Design for Web
Applications: It's a Different World
from Web Site Design


User Interface Design for Web
Applications: It's a Different World
from Web Site Design
11/15/2003 04:25 AM

digital-web.com/features/feature_2003-11.shtml
track this site | 5 links


DocBook XSL stylesheets 1.54.1 released


DocBook XSL stylesheets 1.54.1 released 09/03/2002 11:37 AM
The DocBook Open Repository project have released version 1.54.1 of the DocBook XSL stylesheets distribution, a set of stylesheets for use in converting DocBook XML documents to HTML, XSL-FO, Microsoft HTML Help, JavaHelp, and man pages. This release provides a number of significant enhancements.

DocBook XSL Stylesheets 1.52.0 released


DocBook XSL Stylesheets 1.52.0 released 07/08/2002 08:49 PM
https://sourceforge.net/project/showfiles.php?group_id=21935 Changes include: A complete and consistent set of chunking parameters; many new HTML Help parameters; support for new-style OLinks; experimental support for xref styles; completely reworked page master/sequence config; support for cross-references to paragraphs; new header/footer, column, and glossary parameters; other new parameters: draft.mode, suppress.footer.navigation and suppress.header.navigation, make.graphic.viewport, nominal.image.depth, nominal.image.width, use.embed.for.svg, refentry.title.properties, section.title.properties, use.embed.for.svg, generate.meta.abstract.xml

DocBook DSSSL Stylesheets 1.78


DocBook DSSSL Stylesheets 1.78 03/13/2003 11:27 AM
DocBook stylesheets, schemas, documentation, and resources.

DocBook to LaTeX XSL stylesheets


DocBook to LaTeX XSL stylesheets 03/13/2003 03:38 PM
0.7pre2 released

CSS Crash Course - Introduction to
StyleSheets


CSS Crash Course - Introduction to
StyleSheets
12/18/2002 07:04 AM
First in a series of CSS ice breakers.

DocBook XSL Stylesheets 1.55.0 released


DocBook XSL Stylesheets 1.55.0 released 09/18/2002 03:29 PM
Changes include new Lithuanian and Vietnamese localizations, support for rotating table cells in FO output, experimental chunking performance enhancements, and a variety of other enhancements and bug fixes. https://sourceforge.net/project/showfiles.php?group_id=21935

Of the total 5 billion video streams
served during the first half of 2004,
79.1% were at broadband (100 kbps and
above) rates, with an average length of
view of 30 minutes per unique user per
month per site


Of the total 5 billion video streams
served during the first half of 2004,
79.1% were at broadband (100 kbps and
above) rates, with an average length of
view of 30 minutes per unique user per
month per site
08/28/2004 02:47 AM
[PRWEB Aug 28, 2004]

DocBook XSL stylesheets 1.54.1 released
(xmlhack)


DocBook XSL stylesheets 1.54.1 released
(xmlhack)
09/04/2002 09:50 AM

Transforming XML: Utility Stylesheets,
Part Two


Transforming XML: Utility Stylesheets,
Part Two
05/05/2004 06:17 PM
In this month's Transforming XML column Bob DuCharme continues his tour of generic, utility stylesheets.

FileMaker XML Central serves up free
stylesheets, more


FileMaker XML Central serves up free
stylesheets, more
03/13/2003 10:24 AM

IBM Infoprint XML Extender for z/OS
supports XSL stylesheets and XSL-FO (XML
Cover Pages)


IBM Infoprint XML Extender for z/OS
supports XSL stylesheets and XSL-FO (XML
Cover Pages)
11/04/2002 10:42 AM

Switching document views: Applying XSLT
stylesheets dynamically with DOM (XML
Journal)


Switching document views: Applying XSLT
stylesheets dynamically with DOM (XML
Journal)
07/17/2002 01:09 PM

Download.com.sg, a Full Fledged Software
Download Site Hits 100,000 Visits a Day,
Increasing User Base Steadily and
Keeping Software Developers and Sponsors
Happy


Download.com.sg, a Full Fledged Software
Download Site Hits 100,000 Visits a Day,
Increasing User Base Steadily and
Keeping Software Developers and Sponsors
Happy
06/22/2005 01:51 AM
Within a short period of time, download.com.sg has made a mark for itself as the premier software repository. Download.com.sg has added 10,000 memebers over just a few months and is averaging 100,000 visits daily. Its sponsors, mainly software developers who sell their software are kept happy with low advertising rate and high returns. [PRWEB Jun 21, 2005]

HotFix Watch: Programs that are
advertised to a user run when another
user logs on to an SMS 2.0 client
computer


HotFix Watch: Programs that are
advertised to a user run when another
user logs on to an SMS 2.0 client
computer
08/30/2004 05:24 PM

Revenge of the User: Lessons from
Creator/User Battles ETCON talk notes


Revenge of the User: Lessons from
Creator/User Battles ETCON talk notes
02/11/2004 04:31 PM
Here're my running notes from danah boyd's Re venge of the User: Lessons from Creator/User Battles at the O'Reilly Emerging Technology Conference in San Diego.
The response is an attempt to "configure the users" -- constrain behavior to acceptable behavior with messaaging, kicking people off, etc.

This won't work: you can't tell a hacker not to hack. These kids are social hackers. You can stop some bad behavior, but you chase off your best users, too.

Dating doesn't happen because you're in a dating context. Dating arises out of real contexts.

Taking away fakesters didn't make Frienster more real. Friendster is unreal because people never remove their friends, even if they never see them (the exception is when you break up, ironic, because ex-lovers are strong ties!).

Link

How to deal with packages where user
specific data configuration has to be
user portable


How to deal with packages where user
specific data configuration has to be
user portable
09/11/2004 11:26 PM

"Lance Arthur slightly loses it over
BitTorrent - which I will confess does
not have the greatest user experience
for a naive user"


"Lance Arthur slightly loses it over
BitTorrent - which I will confess does
not have the greatest user experience
for a naive user"
08/14/2004 09:34 AM

Review - The Elements of User
Experience: User-Centered Design for the
Web


Review - The Elements of User
Experience: User-Centered Design for the
Web
12/08/2002 10:04 PM
WebmasterBase Dec 8 2002 8:41PM ET

Back to the User: Creating User-Focused
Websites


Back to the User: Creating User-Focused
Websites
10/17/2002 08:03 AM

10.3: Kill another user logged in under
Fast User Switching


10.3: Kill another user logged in under
Fast User Switching
12/02/2003 12:38 AM
Fast User Switching has been a popular Panther feature in my lab where several students share one computer. However, ocassionally a user forgets to log out, and I (logged in as Administrator) have not figured out how to log t...

Modify The User Description Attribute
For An Ad User Account


Modify The User Description Attribute
For An Ad User Account
08/17/2004 09:19 PM

SMS Query: Match Computer with User and
the User Fullname


SMS Query: Match Computer with User and
the User Fullname
05/15/2004 08:42 AM

Configuring Site Systems and Site to
Site Communications with Advanced
Security


Configuring Site Systems and Site to
Site Communications with Advanced
Security
08/16/2004 10:22 AM

Grok Description matches for Per-site user stylesheets
GrokA matches for Per-site user stylesheets

Per-site user stylesheets

The following phrases have been identified by the grok system as matching this entry:

















Also check out:


Grok

Ipod Porn on the
Rise

Brief Abstract of
Wikipedia's
Mesothelioma Cancer
page

Get first aid
instructions in your
cell phone

IE is crap
JSPWiki gains
podcasting support

Memory cell
2004-07-14T23:08:40
2004-07-14T23:21:09
2004-07-14T23:38:39
2004-07-15T00:08:23
IBM captures image
of electron

Briefly: IBM
captures image of
electron

internetnews.com:
XML-'Reloaded' PHP5
Released

AT&T plugs into
power lines for
high-speed Net

Intuit warns of
credit card risk

Features: Ontology
Tools Survey,
Revisited

.NET Rocks! - Tim
Huckaby

Cumulative Security
Update for Outlook
Express 6 Service
Pack 1 (KB823353)

Veritas secures
Invio for $35m

Oracle Optimistic
About Its Business
(Reuters)

Former Red Hat Execs
Start New Linux
Company (Ziff Davis)

SHOPTALK: In Like A
Lion, Out Like A
Sham (AdWeek.com)

COTW Revisited: Owen
Driscoll's Blurrg

LEGO Star Wars
Comic-Con News

Stocks stumble on
Intel

Stocks Close Lower
As Disappointing
Intel Outlook, Lower
Retail Sales Offset
Upbeat Earnings

Be my friend? Only
on my turf

MPAA could learn
from RIAA

Apple third-quarter
earnings beat
expectations on
computer, iPod sales

Computer chip maker
AMD posts
second-quarter
earnings of $32.2M
US

Case against Napster
backers gets green
light

Psst--want some
source code?

Computer problems
cost Defence Dept

Stocks slip as
disappointing Intel
outlook, lower
retail sales offset
upbeat earnings

Suit Against Napster
Backers OK

AMD reports record
revenue

Repairing ailing
Hubble has NASA
under the gun

Chip Implanted in
Mexico Judicial
Workers

Execs Click Away On
Email Attachments

Software That Lasts
For Years And Years

Interesting Geek
News Central Net
statistics

Hearing babies
babble with hands

Darfur security
'deteriorating'

Voters head to
by-election polls

XMMS Plugin Pack
NSB Entropy
Estimation

Utah Makes Driving
Records
Online-Accessible

Rumor Today: New,
Sleeker iPods In
August

20 Suggestions For
Improving The Mac
Experience

Service Pack 2:
Patching The
Unpatchable

Super Customized
iPod Mini

Apple In Tune
And Like Magic,
Barclaycard Works
Again On The Mac

Why Apple Employees
Will Blog In Revolt

Macworld Boston
2004: Brains Over
Beauty

what is grok?