DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: HTMLViewer and CSS  (Read 5,728 times)

macs

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 21
HTMLViewer and CSS
« on: June 26, 2008, 03:20 PM »
Is there any way to get a webpage to open in the viewer and then apply a local CSS file to it.

It seems to me that a lot of webpages have useful information on them but just occupy too much space on screen to work nicely in the viewer. I was wondering if you could specify the URL and the CSS name in the FARR's Alias. FARR would then open the URL in the mini-viewer and then apply the CSS. The CSS would then strip away all the unwanted bits.

I guess there are ways to do this with some of the existing add-ins or a new add-in. I just wondered if there was something more simple available.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: HTMLViewer and CSS
« Reply #1 on: June 26, 2008, 03:27 PM »
i think this is a great idea. let me think about ways this might be done.

herojoker

  • Participant
  • Joined in 2008
  • *
  • Posts: 124
Re: HTMLViewer and CSS
« Reply #2 on: June 26, 2008, 04:12 PM »
I think this is very closely related to the requested greasemonkey-like addon.
In my opinion the user-specified CSS file should be loaded after the ones specified in the document. You could also add the possibility to add user made Javascript files.
There should be per-site and global settings for each.

mouser: If you implement this, please write a plugin (do not add it to the core functionalities; of course APIs may be added for this, if not already there)

macs

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 21
Re: HTMLViewer and CSS
« Reply #3 on: June 26, 2008, 09:55 PM »
I don't have an opinion as to whether it should be a plugin or part of the core FARR, thats is for mouser to decide the best way to do it (if he decides this is a worthwhile addition).

From an end user's point of view I think the ideal would be to download a package which included the alias, css file and javascript file all in one go. I guess it would also be nice if the package could contain more than one set of alias/css/javascript files together. In addition DCUpdater would be able to update the package replacing the CSS/Javascript files if, for example, the layout of the webpage changes.

Original address: https://www.donationcoder.com/forum/index.php?topic=13839.0