Read, read, read. Read everything - trash, classics, good and bad, and see how they do it. Just like a carpenter who works as an apprentice and studies the master. Read! You'll absorb it. Then write. If it is good, you'll find out. If it is not, throw it out the window.
-
William Faulkner
About / Biography
Resume
Contact
Journal / Blog
Recommended Reading
Reviews
View Adam Kahtava's profile
Recent entries
Categories
.NET
AJAX
ASP.NET
ASP.NET AJAX
BarCamp
Book
C++
Calgary
Career News
Code Camp
Community
Contest
CSharp
CSS
dasBlog
DOM
Events
Firebug
Firefox
greasemonkey
IE
Interview
JavaScript
Links
Musings
Opera
Ottawa
Personal
Programming Languages
Quality Assurance
Review
Software
Team Work
TechNet
Themes and Skins
Toronto
Unit Testing
Videos
XML
Archives
September, 2008 (1)
August, 2008 (2)
July, 2008 (4)
June, 2008 (7)
May, 2008 (6)
April, 2008 (8)
March, 2008 (7)
February, 2008 (3)
January, 2008 (1)
December, 2007 (1)
November, 2007 (2)
October, 2007 (1)
September, 2007 (3)
July, 2007 (1)
May, 2007 (3)
April, 2007 (4)
March, 2007 (4)
February, 2007 (5)
January, 2007 (3)
December, 2006 (1)
November, 2006 (5)
October, 2006 (6)
September, 2006 (8)
August, 2006 (2)
July, 2006 (8)
June, 2006 (9)
May, 2006 (1)
Syndicate this site
Sign In
powered by
dasBlog
Journal / Blog
Thursday, November 22, 2007
My first Greasemonkey Script: Goodbye ASP.NET Forum Ads
Greasemonkey
is an add-on for Firefox. Through JavaScript it allows anyone the ability to dynamically modify a page as, or after it's being rendered in the browser. This lets anyone trim the DOM, remove ads, and modify page in anyway they see fit (it also opens up some serious privacy concerns with
XSS
). Anyhow, I spend a fair time on the
ASP.NET forums
, but the advertisements have always made for a somewhat negative, but tolerable user experience.
Today I finally broke down and wrote my own Greasemonkey script - now formally known as
"The ASP.NET Forums Beautifier"
for lack of a better name.
The Script Before and After:
Before -
usually the ASP.NET Forums look like this:
After
- with my script running in Greasemonkey we get this:
note: the greasemonkey icon, and complete lack of fluff / advertisements on the second screenshot.
Creating this script was simpler than I expected. It was a matter of skimming through an article on
How to write Greasemonkey scripts
, using
Firebug's JavaScript Console
and
Firefox's Error Console
to test my code (after all, Firefox is the new IDE,
Firefox as an IDE
), and an hour later, Viola! No more ads.
The
YUI blog
and
Douglas Crockford
in particular, have inspired my JavaScript renaissance. JavaScript is really interesting, it's a functional, loosely typed programming language that uses
prototype-base inheritance
. Developing in JavaScript is a real treat from some of the more statically typed languages.
Download
Greasemonkey
and
"The ASP.NET Forums Beautifier"
for yourself. :)
CSS
|
DOM
|
Firebug
|
Firefox
|
greasemonkey
|
JavaScript
PermaLink
|
Digg It
|
Del.icio.us
|
Comments [0]
Related posts:
Cross Language Naming Conventions: Avoiding Verbosity In The Presentation Layer
Free: Win a Copy of: JavaScript: The Good Parts by Douglas Crockford
Book Reviewed: JavaScript: The Good Parts by Douglas Crockford
Writing a Control for the AJAX Control Toolkit: Something Stinks
More on the perils of The ASP.NET AJAX Framework
The Good Parts of The ASP.NET Framework and Visual Studio
Name
E-mail
Home page
Remember Me
Comment (Some html is allowed:
a@href@title, img@src, strike
) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.
Enter the code shown (prevents robots):
Live Comment Preview
Page rendered at Friday, September 05, 2008 8:35:11 PM (GMT Standard Time, UTC+00:00)
Disclaimer & Copyright
© 2008
Adam Kahtava
(
Adam.Kahtava.com
/
AdamDotCom.com
)
:: Friday, September 05, 2008 8:35:11 PM (GMT Standard Time, UTC+00:00)