Not sure how you inject default HTML for new pages via an extension... There's probably an event for that.
I just wanted to note that many search engines now render websites with JS enabled. Facebook seems even able to read og: tags that have been added via javascript after page load !