FRstyle - a Firefox extension
Project goals: dynamically rewrite pages from FreeRepublic with client-side scripting to present a flexible modern interface.
Feature Status Allow automatic inlining of excerpted articles to embedded IFRAMES. The IFRAME can be resized via a +/- pair of images next to it to make it grow or shrink. done Allow automatic inlining videos from YouTube & Google Video, replacing links with an embedded player on the FR thread while preserving the original link as well. done Fully restrict page modifications to non-news threads, detect old thread that are too old to be modified and leave them unaltered. done Modify all relevant tags (header, footer, article, reply elements like To's, From's, etc. with proper ID and CLASS attributes so users can modify their own user CSS style sheets to change the colors, borders, margins, backgrounds of all page elements. done Allow users to modify their own custom CSS style sheets to modify the To and From tags on a per-user basis. Essentially, you could make a simple entry to make your own posts stand out more via larger or differently colored text. You could also use this to place other users on an Ignore list, effectively causing their comments to become invisible in the thread. done Embed a simple CSS editor with Preview capability for easy CSS testing and a button to Hide the editor temporarily. Also a button to list Classes in the page. Put in Greasemonkey menus to save a default style sheet or to reset to the original hardcoded default sheet. done Provide a control panel or popup menus to control various elements of the script (colors, images, layouts). Configuration info will be saved on local machine. done Convert all previous work into a full-blown Firefox extension. done Provide easy user-defined image blocking to alleviate spam annoyance. done Create a mini-editor for HTML with live preview, similar to the Xinha WYSIWYG HTML editor extension for Firefox. done Provide a facility so that when you right-click a Reply button on a news thread, you are presented with a pop-up menu allowing you to copy the HTML of the original post or just the text you've highlighted and automatically insert it into the reply posting page. Essentially, an automatic quote-and-reply function. maybe Allow the user to edit new posts inline by dynamically opening an IFRAME on the page thread with the usual posting page. After the user clicks Submit on his comment, the script will close the IFRAME and refresh the current page so the new post will appear. maybe Automatic updates of the My Comments page and possibly other pages at a user-specified interval. However, this auto-update would lapse if those FireFox tabs had not been used in the last half-hour. In addition, I might offer the ability to sound an alert or perform some other action if the first item on the page had changed since the last update. maybe
Changelog:
- 4/30/2007 - FRstyle is now a full-blown Firefox extension. It supports two major Layout styles, each with six Stylesheets. It has a multi-tabbed control panel. Too many other new features to list. More details to come. See pictures below.
- 10/20/2006 - embedded, hidable CSS editor via floating TEXTAREA.
Options to reset to hardcoded CSS, revert to saved, or save current sheet.
- 10/18/2006 - collapsible IFRAMES, embedded GooTube videos
Toggling between two fixed sizes was too inflexible. Also not fun enough. Changed the IFRAMEing to include a plus/minus pair of images which change the height in increments of 100. See screenshot below.- 10/15/2006 - Posted initial screenshots and updated this site.
Notice the alteration of the header and footer, the detection of an excerpt article and the insertion of a resizable IFRAME to the site that was excerpted, the use of 3 background images as wallpaper for the various elements. Various page elements have had new CSS attributes attached. For scripting practice, the script currently removes the fundraiser banners which also makes these screenshots smaller; I learned a bit about Mozilla's Document Object Model with that but am still swatting bugs and learning from that.See the images below to see a sample of what Firefox's GreaseMonkey extension and Javascript can do with a page from FreeRepublic.com.
Currently using: Firefox v2.0.0.3
Note: this script is not yet available to the public but may eventually become available via secure server at https://addons.mozilla.org.
Recent Changes, Screenshots
From: 04/29/07
From: 10/20/06
From: 10/20/06
Embedded CSS editor, load/save/reset CSS sheets, display class lists
10/20/06 screenshot
From: 10/18/06
Both YouTube and Google Video are now working and will automatically embed themselves in FR threads.
(FR thread: YouTube, Google, and the Liberal Bias Virus)10/18/06 screenshot
From: 10/16/06
Showing the new collapsible IFRAME
10/16/06 screenshot
(FR thread: U.S. confirms N. Korea blast was radioactive
Client-Side Scripting: Website Abuse And Legal Issues
Although any website is susceptible to DOS attacks and bandwidth hogs, client-side scripting can be abused to hog bandwidth or to spam a website or to build databases of content.
Due to FR's history with LAT and WP, there are also legal issues to explore.
I'll explain and discuss these issues briefly, primarily to answer questions and objections people might have to such a script and, secondarily, to stimulate more discussion on the topic. I don't expect to post any discussion threads on this topic at FreeRepublic in order to shield them from any liability issue.
This brief overview of the topic of scripting abuse and legality is by no means comprehensive. I will edit it from time to time and post more info and, hopefully, some legal commentary to support my opinions. I may move it to another page and solicit comments from readers if there is any interest.
Old Stuff
Old Index - the original FR scripting pages from September 2001