From e40c9e3d9455c4e805f3aa3b218fdd2ef756ee23 Mon Sep 17 00:00:00 2001 From: "dougt%meer.net" Date: Thu, 10 Nov 2005 17:40:00 +0000 Subject: [PATCH] Fixing bug 315038. Adding a slashdot site specific example --- minimo/components/ssr/nsSSRSupport.cpp | 7 +++++++ minimo/components/ssr/sites.css | 17 +++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/minimo/components/ssr/nsSSRSupport.cpp b/minimo/components/ssr/nsSSRSupport.cpp index 67809ae4547..70504a629b1 100755 --- a/minimo/components/ssr/nsSSRSupport.cpp +++ b/minimo/components/ssr/nsSSRSupport.cpp @@ -129,6 +129,13 @@ nsSSRSupport::Observe(nsISupports *aSubject, const char *aTopic, const PRUnichar prefBranch->AddObserver("ssr.", this, PR_FALSE); + PRBool enabled; + prefBranch->GetBoolPref("ssr.enabled", &enabled); + SetSSREnabled(enabled); + + prefBranch->GetBoolPref("ssr.sites.enabled", &enabled); + SetSiteSSREnabled(enabled); + return NS_OK; } diff --git a/minimo/components/ssr/sites.css b/minimo/components/ssr/sites.css index e3680d530c6..bbecbf2ed48 100755 --- a/minimo/components/ssr/sites.css +++ b/minimo/components/ssr/sites.css @@ -4,3 +4,20 @@ div#panel { display: none ! important;} table#headertitle { display: none ! important;} } + + @-moz-document domain(slashdot.org) + { + div#links, div#topnav, div#slogan, div#footer, div#slashboxes, div.indexhead { display:none; } + + body ul { display:none !important; } + + div#frame, div#contents { + margin: 0px !important; + padding: 0px !important; + } + + div#articles { + margin: 0px !important; + padding: 5px !important; + } +}