Add html to every page

Hi,
My first post! New to extension development, so bear with me...

I would like to create a Firefox addon to add some html to every page.
It doesn't really matter where in the page it is added (because it is
divs who's positions are absolute), but it would be nice if they show
up as soon as possible when the page loads. Either that, or just have
the html overlaid on top of every page, independent of page loading.

Does anyone know if there are scripts already written to do this kind
of thing? I've tried looking in the code snippets (http://
developer.mozilla.org/en/docs/Code_snippets) but can't find anything.
I don't mind learning how to write it from scratch, but I'd rather not
if someone's already done it.

Thanks,
-Nathan
0
Nathan
4/23/2008 1:53:44 PM
mozilla.dev.extensions 5694 articles. 0 followers. Post Follow

3 Replies
3398 Views

Similar Articles

[PageSpeed] 8

Oh, and the HTML has already been written, and it's pretty complex and
there's lots of JavaScript involved, so it wouldn't be easy to re-
implement in XUL.
-N
0
Nathan
4/23/2008 2:01:16 PM
----- Original Message ----
> > From: Nathan 
> > 
> > Oh, and the HTML has already been written, and it's pretty complex and
> > there's lots of JavaScript involved, so it wouldn't be easy to re-
> > implement in XUL.
> > -N


Listen for page loads (http://developer.mozilla.org/en/docs/Code_snippets:Page_Loading)
After a page has loaded, add your HTML to the page using the DOM API for appending/inserting nodes.

Eric



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
0
Eric
4/23/2008 2:40:53 PM
You can also look at the Greasemonkey extension. This extension runs 
Javascript and modifies page DOM in a pretty advanced way. Maybe your 
extension can work as a Greasemonkey script?

Nathan wrote:
> Hi,
> My first post! New to extension development, so bear with me...
> 
> I would like to create a Firefox addon to add some html to every page.
> It doesn't really matter where in the page it is added (because it is
> divs who's positions are absolute), but it would be nice if they show
> up as soon as possible when the page loads. Either that, or just have
> the html overlaid on top of every page, independent of page loading.
> 
> Does anyone know if there are scripts already written to do this kind
> of thing? I've tried looking in the code snippets (http://
> developer.mozilla.org/en/docs/Code_snippets) but can't find anything.
> I don't mind learning how to write it from scratch, but I'd rather not
> if someone's already done it.
> 
> Thanks,
> -Nathan
0
Jorge
4/23/2008 10:36:57 PM
Reply:

Similar Artilces:

How to add HTML tag in a aspx page which is under a master page?
How to add HTML tag in a aspx page which is under a master page? So are you wanting to add an HTML Tag to the content page or add a html tag to the Master page from the content page?Cheers,AndrewBlog : andrewrea.co.uk  To content page  Because masterpage and content page combine together at run time to a single page, the HTML tag in master page is combined into the page. So I think you cannot plug a html tag any longer as one page cannot contain multiple HTML tag. Johnson Hi, Do you want to add some html tags in the content page? Which html tags? But you cannot put ...

Redirecting /page.html to page.html
HiI have some plain HTML files that I get from an external web server. The files contain links that ALL look like: "/folder/subfolder/page.html". Then I use <% Response.WriteFile("page.html") %> for all files to be included in my page.aspx. Now the problem is that because ALL links are prefixed with a forward slash, it tries to get the file from the root web server not the root application folder. So it tries to get the page from "http://localhost/folder/subfolder/page.html" rather than "http://localhost/webapproot/folder/subfolder/page.html". Ho...

Calling HTML page from ASPX page + sending parameters to the HTML page
Dear ALL I am working with ASP.NET2.0, C# And want to call an HTML page from my ASPX page and: 1. I want it to be a popup window. 2. I want to pass 2 parameters to the page that I will call. Please tell me how to do that, Thank you You can set the button (or onload event, whatever) that you are using to trigger the popup by doing something like this: <asp:Button id="myButton" runat="server" OnClientClick="window.open('myhtmlpage.html?param1=this&param2=that', 'mypopup')">Click Me!</asp:Button>Or, you can set the OnClie...

Calling HTML page from ASPX page + sending parameters to the HTML page
Dear EE I am working with ASP.NET2.0, C# And want to call an HTML page from my ASPX page and: 1. I want it to be a popup window. 2. I want to pass 2 parameters to the page that I will call. Please tell me how to do that, Thank you  If you're going to be opening the new window from a hyperlink anchor or a form, you need to give a target="_blank" attribute.  By the way, it's not considered good practice to create pop up windows since it makes it hard for accessibility tools like screen readers to make sense of them.  You can use QueryStrings to pass ...

How to add or Redirect to a .aspx page when clicked on links which are in .asp/html pages
Hi, We never had a .aspx page on our website(we have .html and .asp pages) and I was asked to develop an application where i have a choice of using the technology. I am familiar with .Net and would like to develop the application in .net(due to lack of of some concepts in asp). My problem is i developed the application and works on my local machine,but i would like to open my .aspx page when i clicked on a link which is on multiple asp pages. I want to add my .aspx page(example:http://www.warner.com/default/default.aspx) url to the link. Can any one give me an idea what i need to do,whe...

How to send Data from HTML page to ASP.NET page and back to display result on HTML page
I have HTML page for particular department in our Intranet site. When page is opening (onload event), I need to call my ASP.NET page, send to her department name as parameter, retrieve from database number of requests for this department, then send result back to HTML page to display on HTML page number of requests for this page. Is it possible to implement it? You need to convert the HTML page to aspx and call the business layer directly to get the count.Don't forget to click "Mark as Answer" on the post that helped you.This credits that member, earns you a point and m...

Intent to ship: Ship SeaMonkey with a extension that adds additional buttons to AMO pages for SeaMonkey extensions.
https://wiki.mozilla.org/SeaMonkey/StatusMeetings/2015-05-26#Discussion_Points_.28Summary_from_previous_meeting.29 -------------------------------------------------------------------- Ratty and IanN really like Rainer & Lemon Juice proposal for an extension shipped with SeaMonkey that adds additional buttons when browsing addons.mozilla.org. Also see Bug 1145026 Comment 15 for the initial discussion. https://bugzilla.mozilla.org/show_bug.cgi?id=1145026#c14 -------------------------------------------------------------------- Phil's random thoughts: Where to host the add...

Editing HTML pages/ bringing HTML pages to DNN
Dear Community!I would like to edit HTML pages with dreamweaver and afterwards import the result to DNN. I don't like editing pages in cute editor or stuff like that because I need a real template feature. My pages are huge amount of product descriptions with a unique layout that I wish to keep maintainable. So my idea is to do the work (offline) in dreamweaver (or FP for people who dont like dw) and simply copy the whole crap to the production portal.I found a module that nearly suits my need: MultiHTML. One problem with it is that it filters the uploaded pages and strips german umlauts :-(...

Generate PDF from HTML page(convert Html page to PDF)
I want to convert a html page in to PDF in asp.net . ok now i have data in a dataset  then how can  generate a PDF from a dataset.Regards Pragash TChennai dont believe you can as .PDF isn't a natively supported type. You can't read it without a tool either...... pragasht: I want to convert a html page in to PDF in asp.net . ok now i have data in a dataset  then how can  generate a PDF from a dataset. Hi pragasht, If you want to change your question, the recommended way is create a new thread or add a reply. Since you have modified your original post,...

How I add html to .cgi page?
Dear All I had a page that was created with a cgi-script www.my-site/cgi-bin/test.cgi the only thig that appaear in that page is pharse hello world How can I add HTML to test.cgi page. Add colors and buttons to the test.cgi page? Ignacio -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup http://archive.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html At 17:44 -0500 04/25/2003, Ignacio Nieto wrote: >Dear All > >I had a page that was created with a cgi-script ...

superreview granted: [Bug 273158] Page do not re-render if page.html#name -> page.html : [Attachment 168033] Patch to implement that behavior
Darin Fisher (IBM) <darin@meer.net> has granted Boris Zbarsky <bzbarsky@mit.edu>'s request for superreview: Bug 273158: Page do not re-render if page.html#name -> page.html https://bugzilla.mozilla.org/show_bug.cgi?id=273158 Attachment 168033: Patch to implement that behavior https://bugzilla.mozilla.org/attachment.cgi?id=168033&action=edit ------- Additional Comments from Darin Fisher (IBM) <darin@meer.net> >Index: docshell/base/nsDocShell.cpp >+ if (hashNew <= 0) { >+ return NS_OK; // Strange URI or no new anchor > } &g...

superreview requested: [Bug 273158] Page do not re-render if page.html#name -> page.html : [Attachment 168033] Patch to implement that behavior
Boris Zbarsky <bzbarsky@mit.edu> has asked Darin Fisher (IBM) <darin@meer.net> for superreview: Bug 273158: Page do not re-render if page.html#name -> page.html https://bugzilla.mozilla.org/show_bug.cgi?id=273158 Attachment 168033: Patch to implement that behavior https://bugzilla.mozilla.org/attachment.cgi?id=168033&action=edit ...

HOW ADD .ASPX PAGE ( as content page) TO MASTER PAGE
hi friends, I have been trying to link  aspx pages to my master page ( which I created afterwards) without any success. I know how to do it when it comes to normal procedure i.e. first create a master page and then content pages. I have a different situation, I already have aspx pages  and now i created a master page but I am unable to link them. I tried  imitating the code from a content page created using normal procedure but thats also not working. Please do help me in this regard, Thank you Prince, Just create a master page and then create a child page. Ch...

Accessing Extensions or add ons page
When I try accessing the extensions or add ons page the firefox browser reports the page as done but the page is blank, why? On 09/15/2006 10:48 PM, John wrote: > When I try accessing the extensions or add ons page the firefox browser > reports the page as done but the page is > blank, why? > > I had this problem with http://addons.mozilla.org/ just an hour ago. I assume it's part of the "Mozilla downtime" that was mentioned earlier. -- paduille.4058.mumia.w@earthlink.net On 9/15/2006 8:48 PM On a whim, John pounded out on the keybo...

Web resources about - Add html to every page - mozilla.dev.extensions

Donald Trump Calls Ted Cruz ‘A Little Bit Of A Maniac’ After Slipping In Iowa Poll: “I Have Far Better ...
Donald Trump says that he will run as an independent candidate if he continues to receive backlash after his Muslim ban comments, The Guardian ...

Paris climate deal: key points at a glance - Environment - The Guardian
The goal of 1.5C is a big leap below the 2C agreed six years ago in Copenhagen. Here’s what the agreement means for global emissions and the ...

Harrison Ford Sneaks Into ‘Star Wars: The Force Awakens’ Event, Surprises Fans
The Force — and the surprise — is strong with this one. Harrison Ford sneaked into an Australian fan event for “Star Wars: The Force Awakens,” ...

Russia warning shot: Putin's forces fire at Turkey vessel in Aegean sea - Latest News - Breaking UK News ...
VLADIMIR Putin's forces have fired a warning shot at a Turkish vessel in the Aegean sea.

After beating Aldo, McGregor wants to hold a second UFC belt
LAS VEGAS (AP) — Gab is just one of Conor McGregor's many gifts.

Apple Music wins exclusive video deal with Taylor Swift
(Reuters) – Pop star Taylor Swift’s “1989 World Tour Live” concert video will be available exclusively on Apple Inc’s music streaming service, ...

Los Angeles Lakers News: Kobe Bryant Talks Relationship With Dwight Howard
After being on the losing end of a lopsided 126-97 loss to the Houston Rockets, Los Angeles Lakers’ legend and the soon-to-be retired Kobe Bryant ...

Initial Results Show First Female Politicians Elected In Saudi Arabia
Huffington Post Initial Results Show First Female Politicians Elected In Saudi Arabia Huffington Post RIYADH, Saudi Arabia (AP) At least five ...

French elections: seven regions for centre right, none for Front National – as it happened
Marine Le Pen’s party defeated by tactical voting and an increase in turnout after record showing in first round

How The Warriors Streak Ended
24 wins in a row is as impressive of a streak as you’ll ever see to start an NBA season, but the Warriors were close to a different, sneakily ...

Resources last updated: 12/13/2015 11:46:37 PM