Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plugin for changing html before displaying it



You're right, i imagine you can't access the whole page from a plugin, but you could try the class posing alternative if you want to insert some code in the application...although this is not the best option available to you i guess,
and it makes the 'plugin' available to Objective-C applications only...
furthermore, safari already subclasses some WebKit classes, omniweb too i think, maybe a lot more, so this could be a pain to make your plugin work everywhere.


On Oct 5, 2006, at 5:56 PM, Ruotger Skupin wrote:

Hi Renaud,

thanks for these suggestions.

I'm not sure that I made this point clear enough, but I don't want to use a webview in my own program. I want to write a plugin for Safari (optionally OmniWeb and others) that changes the html content before Safari (OmniWeb, ...) renders it.

Basically I have no idea, if it is possible for a plugin to get every loaded page in the first place. It seems you have to register a MIME type or rely on <embed> tags.

Ruotger

Am 05.10.2006 um 16:19 schrieb Renaud Molla:

Hi,
well i don't really know if it would work, but maybe this is the beginning of an idea,
i guess the datasource is immutable, ie you can't replace the data that's being downloaded on the fly (am I wrong? if so, then change it there)
i know you can set a webview in an editing mode, therefore you can change it's structure once it's loaded.
So, maybe you could try altering the DOM tree once it's loaded, but I don't know if it is possible actually....
I would give a look at this and how one edits the html in a webview.

Regards.

On Oct 5, 2006, at 4:10 PM, Ruotger Skupin wrote:

Hi,

I would like to build a plug-in, that parses and changes a html page before WebKit displays it. In particular I would like to scan for keywords and change them to a hyperlink. This should work on any (well, most...) websites out in the wild. 

Is that possible at all with WebKit browsers?

Any tips on where to start reading for a steep learning curve? 
(I already read "Web Kit Plug-in Programming Topics" and had a look into "Web Kit Objective-C Programming Guide")

Ruotger

---
Endian Little Hate Programmers

Ruotger Skupin, Mac OS X Software Engineering

ilink Kommunikationssysteme GmbH
Münzstr. 13; 10178 Berlin - Germany





---
Endian Little Hate Programmers

Ruotger Skupin, Mac OS X Software Engineering

ilink Kommunikationssysteme GmbH
Münzstr. 13; 10178 Berlin - Germany




---------------------------------------------------------------------------------------
Orange vous informe que cet e-mail a été contrôlé par l'anti-virus mail.
Aucun virus connu à ce jour par nos services n'a été détecté.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden

References: 
 >Plugin for changing html before displaying it (From: Ruotger Skupin <email@hidden>)
 >Re: Plugin for changing html before displaying it (From: Renaud Molla <email@hidden>)
 >Re: Plugin for changing html before displaying it (From: Ruotger Skupin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.