Note that there are some explanatory texts on larger screens.

plurals
  1. POFirefox /FindBar/ addon resurrection
    text
    copied!<p>I found the FindBar addon, that allows the searching on the page with regular expressions. But it works well only in fox 2 and 3. Can someone help me to adapt it for the fox 4 at least. Cause there are some changes in the extensions development since Firefox4.</p> <p>There are some XPCOM components in that addon, one .dll file and XPCOM functions. </p> <p>This is the .xpi of the addon:<br> <a href="http://www.oxymoronical.com/files/extensions/FindBarRX/archive/FindBarRX-1.0.1.rev45.xpi" rel="nofollow">http://www.oxymoronical.com/files/extensions/FindBarRX/archive/FindBarRX-1.0.1.rev45.xpi</a> <br><br><br> I have read this article about the changes in Firefox4.<br> <a href="https://developer.mozilla.org/en-US/docs/Mozilla/XPCOM/XPCOM_changes_in_Gecko_2.0" rel="nofollow">https://developer.mozilla.org/en-US/docs/Mozilla/XPCOM/XPCOM_changes_in_Gecko_2.0</a></p> <p>But i still cannot apply all the changes. I've changed the manifest file according to those instructions but it still doesn't work. Cause i don't know how to register those components properly. For example i don't know what ID they have.</p> <p><br> In Firefox2 it allows to set the "Regular Expression" checkbox and input a regex pattern, such as \d to search for a digit. In fox 4 it only shows that checkbox but doesn't react on the find-textbox contents. </p> <p>There is a file fbTypeAheadFind.js which contains the method Find(), which performs the main functionality of the regex searching. I worked with JavaScript Debugger Firefox addon, XPCOM Viewer. And in fox2 i can see the fbTypeAheadFind.js, loaded in that debugger and i can set a breakpoint in the file to wath the searching process. But in fox4 there is no this file in the debugger.</p> <p>I guess it's because the XPCOM components aren't loaded properly. So how can i fix it. Maybe it's imposible because there is the .dll file which is responsible for those components loading, but i cannot change it. And maybe i could change all the addon so that it works without those XPCOM stuff, cause i don't really understand it. It's a little hard for me now.</p> <p>In the link above there is a sentense that says that NSGetModule method should be converted to the NSGetFactory. But the NSGetModule is stored in that .dll file. So i have to rebuild all the source code to create another .dll and obtain the NSGetFactory stuff. But i don't have that source code and don't even know how to create it.</p> <p><br> This is my edited <b>chrome.manifest:</b></p> <pre><code>content findbarrx chrome/content/ locale findbarrx en-US chrome/locale/en-US/ skin findbarrx classic/1.0 chrome/skin/ overlay chrome://browser/content/browser.xul chrome://findbarrx/content/browserOverlay.xul overlay chrome://browser/content/browser.xul chrome://findbarrx/content/bindingOverlay.xul style chrome://browser/content/browser.xul chrome://findbarrx/skin/findbarrx.css interfaces components/fbITextExtractor.xpt binary-component platform/WINNT_x86-msvc/components/FindBarRX.dll component {a5089a1b-2afe-4dae-94b4-c051c3cde90a} components/fbFallbackTextExtractor.js contract @blueprintit.co.uk/fallbacktextextractor;1 {a5089a1b-2afe-4dae-94b4-c051c3cde90a} category profile-after-change FindBar-RX-Text-Extractor @blueprintit.co.uk/fallbacktextextractor;1 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload