topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday November 21, 2025, 8:21 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 86 87 88 89 90 [91] 92 93 94 95 96 ... 113next
2251
FARR Plugins and Aliases / Re: CHM2Alias
« Last post by ewemoa on March 02, 2010, 04:15 PM »
LOL - to both responses :)

phitsc: naively I was thinking that it wouldn't be hard for an AHK guru...but I guess according to Fred Brooks, all programmers are optimists...

mouser: please feel free to use it as such -- as far as I'm concerned, no permission necessary.
2252
FARR Plugins and Aliases / Re: CHM2Alias
« Last post by ewemoa on March 02, 2010, 10:02 AM »
Thank you for confirming that the tool is working and your thoughts on making the tool simpler to use.

It is perhaps beyond my current AHK capabilities to quickly implement your suggestions -- however, I now have more motivation to learn about how these things might be done :)

Also, I have updated my local source to remove the 'chm' from the group alias name.  Thanks for this idea also.  

If you would like to see this change in your local version (and haven't carried it out already), the file to edit is map2aliasfile.js, and code here now looks like:

Code: Javascript [Select]
  1. // XXX: auto-naming is hard... ?
  2.     ts.WriteLine("        <AliasText>" + bname + "</AliasText>");
  3.     ts.WriteLine("        <Score>1000</Score>");

It is the 2nd line which is different.


P.S. In case it has sounded confusing, a portion of this program is written in AHK, and the rest is written in JScript (plus a tweak to make it possible to #include code from other files).
2253
FARR Plugins and Aliases / Re: CHM2Alias
« Last post by ewemoa on March 02, 2010, 05:44 AM »
No problem.

I presume then that it is working and I am happy about that :)
2254
FARR Plugins and Aliases / Re: CHM2Alias
« Last post by ewemoa on March 02, 2010, 04:23 AM »
Thanks for your continued testing and feedback  :Thmbsup:

I have not had luck reproducing the issue with (what I think is) the latest version available for download:

  File Size: 256,216 Bytes
  SHA1: 9a32d5d3670ac0356efd9dd483d3f1fbead0c488

Would you mind confirming that those values are what you see for the .zip file you tested with?  Those are the characteristics of the .zip file from which I just tried with -- that's what I asked FF to download (but sometimes I get cached versions) -- and it's possible I'm not testing with the right version.  (I also tried downloading with IE and got the same results, FWIW.)

To explain what I think the issue is (or at least one of the problems is) -- hh.exe doesn't seem to work well with paths surrounded with double-quotes, so what I did was to pass 8.3 names (thanks to a suggestion from mouser) to hh.exe.  The README.txt now has some instructions in it describing this along with steps for reproduction in case you'd like to see for yourself.

The invocation of hh.exe is done via the chm2hhc.js file -- nearly all of the code is provided via JavaScript in source form, btw, if you happen to be inclined to take a look (and tweak even).

I agree that a more automatic way of creating, installing, configuring, and updating would be desirable.  If you have any ideas about any of those things, I would welcome discussion :)
2255
Firefox 3 Searches Alias

  • Short Introduction
    This alias allows you to reuse your Firefox "Smart Keyword" searches from within FARR.

    For example, you might configure a Smart Keyword using the keyword "dc" to search the donationcoder forums.  To perform this search in Firefox, in its location bar one might type:

      dc weekly news

    With this alias, you can initiate a similar search from within FARR, (even when Firefox is not running), in its search edit box one might type:

      fs3 dc:weekly news

    In addition, with FARR's non-contiguous matching enabled, you don't even have to remember the "dc" keyword.  If you can type a portion of the website's name, FARR can filter potential candidate searches for you.

    (Feel free to skip the next section "Introduction for the Patient" if you felt you got the basic idea.  I recommend looking at the "Quick Start" section before deciding what to look at afterwards.)

  • Introduction for the Patient
    According to Wikipedia's article on "Features of Mozilla Firefox":

      Smart keywords can be used to quickly search for information on
      specific Web sites.  A smart keyword is defined by the user and can
      be associated with any bookmark, and can then be used in the
      location bar as a shortcut to quickly get to the site or, if the
      smart keyword is linked to a searchbox, to search the site.

    A major aim of this alias is to enable FARR to reuse the core functionality provided by features such as "Smart Keywords" [1].

    Using this alias, a user should be able to quickly search a site via FARR, leveraging Firefox's store of search information, but perhaps in a manner that is more convenient than in Firefox.

    Once the alias has been configured, one might type:

      f3s donatcode:cranioscopical                                  (1)

    or perhaps:

      f3s dc:cranioscopical                                             (2)

    or even:

      f3s doooom:cranioscopical                                      (3)

    in FARR's search edit box to search for "cranioscopical" at the DonationCoder forums.

    If one were using smart keywords, the properties dialog box for the bookmark might have the following fields and values:

      Name: DonationCoder Forums
      Location: https://www.donation...search&search=%s
      Keyword: dc

    Invocations (1) and (3) depend on FARR's non-contiguous matching [2], while invocation (2) might work due to the associated keyword (or also the non-contiguous matching).

    [1] For more information on "Smart Keywords", please consider:

          https://secure.wikimedia.org/wikipedia/en/wiki/Features_of_Mozilla_Firefox#Smart_Keywords
          http://kb.mozillazine.org/Using_keyword_searches
          https://support.mozilla.com/en-US/kb/Smart+Keywords

    [2] In FARR's Options dialog, under Program Options -> Settings -> Search
        Behavior -> Non-contiguous Pattern Matching, there is a setting for:

          Score non-contiguous matches

        This alias may be more convenient if the associated checkbox for
        this setting is checked.

        In addition, it may be that the alias' behavior is affected by the
        checkbox for the setting immediately beneath:

          Disable non-contiguous matching when using +sall to show all matches

        This remains to be determined :)

  • Quick Start
    Please note that below, lines prefixed by >>> are intended as actions.  You may be able to read just those lines and manage to get things working.  The rest of the text is for the cases where that doesn't work out.

    The current approach is meant as a proof-of-concept.  Unfortunately, it has some drawbacks (including but not necessarily limited to):

      -Initial configuration is necessary.  The process used in this
       approach depends on knowing where one's Firefox data (profile
       directory) is and determining this automatically does not appear to
       be so simple.  As of this writing, no automatic method has been
       implemented.
      
      -Periodic manual execution of a utility is necessary to update
       alias information if relevant Firefox data changes.

    If that doesn't bother you or you want to try anyway, please continue :)

  • Installation and Configuration
    The actions in this section include: confirmation, modification, execution of a utility, and informing FARR of changes.

    >>> Confirm that the folder containing the README.txt from the unpacked archive is located in:
    >>>
    >>>   Windows XP: <FARR-Installation-Dir>\AliasGroups\Installed\FF3Searches
    >>>   Vista / 7: Good question -- someone care to help me out on this? :)

    where <FARR-Installation-Dir> is typically (but not necessarily):

      C:\Program Files\FindAndRunRobot

    >>> Appropriately specify values in ExtractFF3Searches.ini

    A starting template is provided in ExtractFFSearches.ini.blank.  Copying it and modifying the result is recommended.  Its content is:

      [Settings]
      ProfileDir=
      Debug=0

    The important value is the one that specifies your Firefox profile directory.  This is named ProfileDir.

    Typical values of ProfileDir may look like (but are not likely to be exactly the same as):

      C:\Documents and Settings\rolfs\Application Data\Mozilla\Firefox\Profiles\p314e21.default
      C:\Users\carlh\AppData\Roaming\Mozilla\Firefox\Profiles\z80x486.default
      X:\Apps\FirefoxPortable\Data\profile
      
    If you don't know what value to use, the following might be of some use in making a determination:

      http://support.mozilla.com/en-US/kb/Profiles
      http://kb.mozillazine.org/Profile_folder_-_Firefox#Finding_the_profile_folder

    Debug should be 0 (off) or 1 (on).  If Debug is 1, the extraction utility (ExtractFFSearches.exe) may provide more diagnostic information than otherwise via dialog boxen and a file named debuglog.txt.

    Once ExtractFF3Searches.ini has been appropriately modified:

    >>> Run ExtractFF3Searches.exe to generate FF3Searches.txt

    Successful execution should result in the creation of a file named FF3Searches.txt.  If you've used FARR aliases before, the content of this file might look familiar.  It is analogous to what you might put in the "Result(s)" text area of the "Edit Group Alias" dialog box in FARR.

    To make FARR aware of the Firefox 3 Searches alias, either restart FARR or:

    >>> Bring up FARR and type: goreload

    Note that there may be a discrepancy between what is in FF3Searches.txt and the most up-to-date information maintained by Firefox.  See the Notes section below for some more detail.

  • Example Usage
    To search Stack Overflow for FARR:

    >>> Bring up FARR and type f3s so:FARR

    One way to analyze what is typed is:

      f3s
        the name of the alias
      <space-character>
        a separator between the alias and the rest
      so
        a string that matches a name/title (Stack Overflow)
      :
        a separator indicating that query terms are about to follow
      FARR
        the query text

    Note the colon character between "so" and "FARR".

    To search Firefox Add-ons for greasemonkey:

    >>> Bring up FARR and type f3s ffa:greasemonkey

    One way to analyze what is typed is:

      f3s
        the name of the alias
      <space-character>
        a separator between the alias and the rest
      ffa
        a string that matches a name/title (Firefox Add-ons)
      :
        a separator indicating that query terms are about to follow
      greasemonkey
        the query text

    Did I mention that there's a colon?  ;)

    The usage of this alias is very similar to that of another one named "SokuGin".  The latter's documentation may be nicer, so it's possible that taking a look might be helpful:

      https://www.donationcoder.com/forum/index.php?topic=15904.0

  • Notes
    -There is an alias for rebuilding FF3Searches.txt -- it is f3sx

    -There is an alias for viewing content similar to what's here -- it is f3sreadme

    -Values in ExtractFF3Searches.ini, should be specifiable using
     environment variables such as %APPDATA%.

    -ExtractFF3Searches.exe may be run with command line arguments (the
     values override any values in the .ini file).  A value for ProfileDir
     may be specified and optionally -v which is equivalent to Debug=1.

    -The extraction utility analyzes daily backups of bookmarks that
     Firefox creates.  The extracted information may be out-of-date
     because the backups are too.  The most up-to-date information is
     stored in a file which Firefox locks while it is running in a manner
     that appears to prevent other programs from accessing it.

     I presume many people often have Firefox running, so I looked for
     another way to access information which might often be comparably
     good.  For more details, please read the following posts:
     
       https://www.donation....msg195345#msg195345
       https//www.donationcoder.com/forum/index.php?topic=18615.msg195489#msg195489

     One work-around is to wait 24 hours and extract again.

     Another might be to use the Backup functionality via Firefox's
     Organize Bookmarks window (though, I've found the latter to be
     somewhat, delayed (may be?) in opeartion).

     A longer-term work-around might be to convince Firefox developers to
     make bookmark data more readily accessible -- preferably without
     users having to install anything additional or make any configuration
     changes :)

     I wasn't keen on copying the locked file to another location and then
     accessing it.  Perhaps my leanings on this matter might be
     influenced...
      
    -Firefox 3.6 seems to generate invalid JSON -- at least the bookmark
     backups in alleged JSON format are not necssarily strictly JSON.  My
     local copies have trailing commas in places where there should not be
     -- at least, that's my current understanding.  This led me to pass on
     using Douglas Crockford's json_parse.js, sadly.

    -Tested with Firefox 3.6 and FARR 2.86.01 around 2010-03-01 on Windows XP
     SP3.

  • Credits
    Thanks to:

      mouser
        for testing, discussion, etc.
      Jabberwock for writing up his post:
        https://www.donationcoder.com/forum/index.php?topic=18615.0
      lanux128
        for discussion and testing

      erictheturtle
        for ws4ahk
      Mike Samuel
        for json-sans-eval, but:
          source code seems to suggest Public Domain
          web page says Apache License 2.0
          errr, so which is it?

      Douglas Crockford
        for JSON
      Chris Mallet and AHK contributers  
        for AutoHotkey and Related Code
      Firefox developers and users
        for Firefox

      Ok, this list could go on, but let's stop here :)


Download
2256
FARR Plugins and Aliases / Re: CHM2Alias
« Last post by ewemoa on March 01, 2010, 08:25 PM »
Aha.  Thanks phitsc for further testing and mouser for the explanation :)

Perhaps I should update the instructions...

I have updated the instructions (and uploaded an updated version) -- if anyone finds they are in error, please let me know.
2257
FARR Plugins and Aliases / Re: CHM2Alias
« Last post by ewemoa on March 01, 2010, 06:47 AM »
I was able to reproduce similar results.

I have uploaded a version which seems to fix the issue locally.

Thanks again for the report -- I hope the fix is effective.
2258
FARR Plugins and Aliases / Re: CHM2Alias
« Last post by ewemoa on March 01, 2010, 06:21 AM »
Could you try running the .exe from a path with no spaces?
2259
FARR Plugins and Aliases / Re: CHM2Alias
« Last post by ewemoa on March 01, 2010, 06:19 AM »
Thanks for the report.

I will investigate :)
2260
FARR Plugins and Aliases / CHM2Alias
« Last post by ewemoa on March 01, 2010, 05:31 AM »
CHM2Alias

This (still very alpha) tool attempts to create a FARR .alias file from a .chm file.  The resulting alias consists of results that point to specific nodes within the .chm file.

Thus, FARR's searching/filtering capabilities may be applied to quickly navigate to certain places within .chm files for which corresponding .alias files have been created, installed, and configured.

How to Use

Basically the tool is applied to an existing .chm file to create a new .alias file.  The resulting .alias file should be placed in an appopriate location and then possibly tweaked via FARR's UI.  Detailed instructions follow.

At the moment, your machine must have hh.exe living in C:\WINDOWS\ for this tool to work.

Creating the new .alias file.

1. Drop a .chm file on to CHM2Alias.exe.

There should be a new .alias file in the same directory as CHM2Alias.exe.

Installing the new .alias file.

2. For Windows XP, the new .alias file should be placed in the folder:

  <FARR-Installation-Dir>\AliasGroups\MyCustom\

where <FARR-Installation-Dir> is typically:

  C:\Program Files\FindAndRunRobot

but may be somewhere else depending on your setup.

For Vista / 7, the new .alias file should typically be placed in:

  C:\Users\<username>\Documents\DonationCoder\FindAndRunRobot\AliasGroups\MyCustom\

where <username> is your user name.

Configuring the new .alias file.
  
3. Open FARR's Options window and navigate to:

  Program Options ->
    Lists ->
     Aliases/Groups
      
Then choose the new .alias via the combo box labeled:

  Select Alias/Group file to configure
  
4. Bring up the "Edit Group/Alias" dialog for the single entry by double-clicking the entry or via its context-sensitive menu.

5. Edit any values appropriately -- specifically, choosing a relatively short value for Group Alias Name is recommended.

Using the new alias.

6. Bring up FARR and type the alias' value for Group Alias Name.

Temporary Download
2261
Developer's Corner / Re: Resources for learning Mercurial?
« Last post by ewemoa on February 27, 2010, 08:17 PM »
Thanks for sharing this :)

Hmm, nice images -- Balsamiq may be?
2262
Developer's Corner / Re: Parsing / Filtering text
« Last post by ewemoa on February 25, 2010, 06:30 AM »
Sorry, the environment I was using was non-English (ah, skwire has explained already) -- but you figured out the appropriate replacement :)

Copy-pasting much text from http://regularexpression.info/:

^([^\\]+)\\.*

Matches at the start of the string the regex pattern is applied to. Matches a position rather than a character.

^([^\\]+)\\.*

Round brackets group the regex between them. They capture the text matched by the regex inside them that can be reused in a backreference, and they allow you to apply regex operators to the entire grouped regex.

^([^\\]+)\\.*

Starts a character class. A character class matches a single character out of all the possibilities offered by the character class. Inside a character class, different rules apply.  Note: in this case, the closing square bracket ends the character class in question.

^([^\\]+)\\.*

Negates the character class, causing it to match a single character not listed in the character class. (Specifies a caret if placed anywhere except after the opening [)

^([^\\]+)\\.*

A backslash escapes special characters to suppress their special meaning.  Wanted to express backslash, but the backslash character has a special meaning in these contexts, so had to "escape" them using a backslash character in each case.

^([^\\]+)\\.*

Repeats the previous item once or more. Greedy, so as many items as possible will be matched before trying permutations with less matches of the preceding item, up to the point where the preceding item is matched only once.  "Previous item" here means the character class of non-backslash characters.

^([^\\]+)\\.*

Matches any single character except line break characters \r and \n. Most regex flavors have an option to make the dot match line break characters too.

^([^\\]+)\\.*

Repeats the previous item zero or more times. "Previous item" here refers to the dot.  Greedy, so as many items as possible will be matched before trying permutations with less matches of the preceding item, up to the point where the preceding item is not matched at all.  

^([^\\]+)\\.*

Bringing the pieces together, one English translation might be:

Match a line which:

starts with a sequence of non-backslash characters (and, oh, let's hold on to this for later reference [1]),
continues with at least one backslash character,
and further continues with some text which we don't really care about

As for the replacement portion:

\1

Substituted with the text matched between the 1st through 9th pair of capturing parentheses.  In the case in question, there is only one pair of capturing parentheses and they captured a sequence of non-backslash characters at the beginning of a line.

This description is not as complete as it might be, but perhaps it will suffice.


[1] Referred to as a "backreference".
2263
Developer's Corner / Re: Parsing / Filtering text
« Last post by ewemoa on February 25, 2010, 05:16 AM »
Here's one way to use Notepad++ for this task.

Edited the images -- should be easier for subsequent viewings :)

Open file in Notepad++
1. Open file in Notepad++.png

Choose Search -> Replace
2. Choose Search -_ Replace.png

Ensure Cursor is at Beginning of Text and Select "Regular expression" for Search Mode
3. Ensure Cursor is at Beginning of Text and Select _Regular expression_ for Search Mode.png

Fill in Appropriately Values for "Find what" and "Replace with"
4. Fill in Appropriately Values for _Find what_ and _Replace with_.png

Click "Replace All" Button
5. Click _Replace All_ Button.png

Examine the Results
6. Examine the Results.png
2264
Sorry that I don't have a solution for your problem, but for reference, IIUC, FARR doesn't index -- I think there may be some plugins that one can install later that do, e.g.

  https://www.donationcoder.com/forum/index.php?topic=10501.0
  https://www.donationcoder.com/forum/index.php?topic=18724.0

I don't know how you've installed your FARR (I use mine in a portable set up so (I think) everything FARR-related lives in or under the directory that contains the FindAndRunRobot.exe), but perhaps the ConfigDir.ini file which lives in the same directory as FindAndRunRobot.exe may give some hints about removal as it seems to contain some information regarding where files get stored.

May be other folks have some better ideas or suggestions.
2265
Does anyone know any regex tester that can work on the focused window content? So basically I would type my regex in the regexpap, and  the app would look for a match that is under the regex app window, like Firefox, Word etc.
Don't know of any such tool -- sounds like an interesting idea.

<dreaming>
I guess for each application type (and perhaps by type of window), specifically what you want your regular expressions to work on may vary.

For Firefox, if your current tab happened to be a web page, I presume you'd want the regular expression to apply to the underlying HTML (so -- would this be what was retrieved or some representation of the current DOM?).  What if I'm looking at an FTP directory listing though...perhaps whatever you can get via "View Page Source"?

For something like Notepad, it seems like it might be straight-forward.

One might even get OCR involved for certain types of situations...e.g. PDFs that are basically a series of images of text.

May be a plug-in system for such a tool could provide a means for people to contribute handling for specific situations...
</dreaming>

Anyway...hope there is something like this already ;)  (May be some of the text expansion tools are in a good position to provide this type of functionality?  Or perhaps some AHK script?)
2266
FARR Plugins and Aliases / Re: New FARR plugin : FFTab allow to switch firefox tab
« Last post by ewemoa on February 16, 2010, 06:26 PM »
I got "Can't connect to Firefox" too, but I had success after selecting the following in Firefox:

  Tools -> MozRepl -> Start

The following page helped me to learn this:

  http://wiki.github.com/bard/mozrepl/starting-the-repl

FWIW, here's a standalone version of fftab.
2267
Didn't find any screenshots...

So, here's one:

kiki.png
2268
Find And Run Robot / Re: Automatic keyword searching in Firefox
« Last post by ewemoa on February 16, 2010, 09:25 AM »
I have a proof-of-concept alias thanks to testing and discussions with mouser.

However, now that I have some interactive experience and I've had some time to reflect, I wonder about the value of this idea is in its current form.

To back up a bit, I think what many of us are interested in is having quick/efficient access to searches that are stored/managed in our browsers.  In Firefox (and some other browsers), there is this idea:

  "let the user specify -- via the location bar -- a keyword (which identifies a search) followed by search terms"

I think it's probably not too uncommon for people to edit the content of their location bars at least occasionally, there are shortcut keys to access the location bar, and may be the shortcuts are even some of the better known ones (anyone done a survey?).  The keyword idea doesn't seem too bad in the context of a web browser if you only have a few searches.  I don't think it scales that well though -- coming up with new keywords (and remembering them!) seems uninteresting as an activity in a way similar to coming up with shortcut keys that have not already been used (and remembering them!).

Luckily in FARR, it doesn't seem necessary to use the keywords defined in Firefox -- if you have some already that your fingers memorized, may be it makes some sense to use them -- but why not distinguish searches in FARR using FARR's searching capabilities applied to the names/titles of the searches?  I think this scales better and is kinder to your brain -- perhaps you'll even use the time you're not dreaming up non-conflicting keywords (or not remembering them!) in a good way :)

This is essentially the approach that Keyser takes -- but it doesn't handle searches associated with bookmark keywords (at least not yet) -- it only handles search bar searches.

So in summary, my current inclination is to focus less on keywords (possibly not even bother) and more on names/titles of searches.  The proof-of-concept mentioned above doesn't extract any name/title information so there is nothing implemented toward the revised idea yet.

Any thoughts?


P.S. If there is anyone who'd like to try the proof-of-concept, here it is.  (Contained within should be a README.txt.)
2269
Find And Run Robot / Re: Automatic keyword searching in Firefox
« Last post by ewemoa on February 13, 2010, 09:57 PM »
This page had some nice info (and pointers to info) regarding some of the aforementioned files and directories.

bookmarkbackups\
The bookmarkbackups folder contains bookmarks-(date).json files in Firefox 3.0 and above (daily rotating backups of bookmarks stored in places.sqlite)

places.sqlite
The file "places.sqlite" stores the annotations, bookmarks, favorite icons, input history, keywords, and browsing history (a record of visited pages).

search.json (FF 3.5 and above)
Cache of search plugin data; used instead of parsing XML files to improve startup time.

One possible way of getting at keyword information might be to access bookmarks-(date).json (the latest one) and search.json.  The information contained within might be somewhat out-of-date, but perhaps in most cases, it would be fine.

Edit: Closer inspection of search.json seems to suggest that there are no keywords inside...perhaps it is necessary to interface with search.sqlite afterall...
2270
1) I would like to keep the search bar visible on the desktop and located at the bottom of the screen just above the taskbar.  Unfortunately, with every search, it moves up to the middle and stays there.

Perhaps phitsc's FarrMultiMonitor plugin could be extended to do something appropriate -- it currently can handle centering.

I don't have any relevant ideas about the other points :)
2271
Find And Run Robot / Re: Automatic keyword searching in Firefox
« Last post by ewemoa on February 13, 2010, 03:13 AM »
Here are some thoughts regarding this idea:

There are at least two sets of keywords in FF3 -- bookmark ones and search bar ones (stored in different ways).

Bookmark keywords are stored in a file named places.sqlite [1].
This file seems locked while FF is running (at least whenever I've checked, that's what I've found) -- I don't know how to read info from places.sqlite while FF is running [2].  It appears that under some conditions (may be default?), FF backs up bookmarks to a folder named "bookmarkbackups" in a user's profile directory.  This information is stored in JSON format and appears accessible while FF is running -- but it may be out-of-date (perhaps not by much in many cases).

The other type of keywords I know about -- keywords related to search bar searches -- live in search.sqlite.
I have not yet had problems accessing search.sqlite while FF is running (perhaps I've been lucky in my timing).  IIUC, search.sqlite does not contain enough information to create necessary HTTP GET queries -- this information is stored in separate files.  Which files these are may be determined via search.sqlite though :)

That about sums up what I've found so far.  Perhaps other folks have corrections or more useful info regarding these things.  Please share if you do!


[1] Although it seems that FF3 bookmarks can be made to save to HTML, IIUC, keywords don't get saved there :(  Edited: (I haven't verified this myself.) Finally restarted FF and observed the content of bookmarks.html -- I see an attribute for the anchor tag named "SHORTCUTURL" and associated values look to me like keywords.

[2] mouser mentioned a possible work-around -- copy the file, access the content, and possibly delete the copy.
2272
Find And Run Robot / Re: Interfacing FARR with QUIX?
« Last post by ewemoa on February 11, 2010, 07:32 PM »
So far, my understanding of Quix is that a fair bit (nearly all?) of the built-in functionality ends up in communication with quixapp.com.  Evidence for this includes:

  • Examination of the quixapp bookmarklet source
  • Wireshark monitoring
  • Testing w/ my network cable unplugged

Lines that look relevant in the source include:

  • window.location = u + '&mode=direct';
  • var w = window.open(u + '&mode=direct');
  • window.location = u + '&mode=direct';
  • void(heads[0].appendChild(sc));

IIUC, each of these is at or near an "exit point" of the code. 

The first three of the four lines mentioned above use "u" directly.  I think "u" starts w/ 'http://quixapp.com/go/?c=' and is only subsequently appended to. 

The fourth of the four lines uses "sc", which incorporates "u" via:

  sc.src = u

If anyone else reads the code differently or thinks I've left out something important, please share :)
2273
General Software Discussion / Re: SubmitToTab - a Firefox add-on
« Last post by ewemoa on February 10, 2010, 09:17 PM »
You could add this Boolean value to 'about:config' and set it to false.

extensions.checkCompatibility

Looks like for FF 3.6:

  extensions.checkCompatibility.3.6

might work better.

See:

  http://kb.mozillazine.org/Extensions.checkCompatibility

But FWIW, I didn't get SubmitToTab working -- though I see that right-clicking does bring up a context menu with FormControlContextMenu installed.
2274
Developer's Corner / Re: What's your *favorite* programming language and *why* ?
« Last post by ewemoa on February 10, 2010, 07:21 PM »
Now if .NET could be made portable...
2275
Find And Run Robot / Re: Interfacing FARR with QUIX?
« Last post by ewemoa on February 10, 2010, 05:31 PM »
For interested parties, below is an expanded version of the bookmarklet:

Code: Javascript [Select]
  1. javascript:Quix();
  2. function Quix() {
  3.   var e = encodeURIComponent;
  4.   var t = window.getSelection ?
  5.             window.getSelection() :
  6.             (document.getSelection ?
  7.               document.getSelection() :
  8.               (document.selection ?
  9.                 document.selection.createRange().text :
  10.                 ''));
  11.   var c = window.prompt('Quix: Type `help` for a list of commands:');
  12.   if (t != '') {
  13.     if (c) {
  14.       c += ' ' + t;
  15.     } else {
  16.       c = '' + t;
  17.     }
  18.   }
  19.   if (c) {
  20.     var u = 'http://quixapp.com/go/?c=' + e(c) +
  21.             '&t=' +
  22.             (document.title ?
  23.               e(document.title) :
  24.               '') +
  25.             '&s=' + '&v=080' + '&u=' +
  26.             (document.location ?
  27.               e(document.location) :
  28.               '');
  29.     d = '' + document.location;
  30.     if (d.substr(0, 4) != 'http') {
  31.       window.location = u + '&mode=direct';
  32.     } else {
  33.       heads = document.getElementsByTagName('head');
  34.       if (c.substring(0, 1) == ' ') {
  35.         var w = window.open(u + '&mode=direct');
  36.         w.focus();
  37.       } else if (heads.length == 0) {
  38.         window.location = u + '&mode=direct';
  39.       } else {
  40.         q = document.getElementById('quix');
  41.         if (q) {
  42.           q.parentNode.removeChild(q);
  43.         }
  44.         sc = document.createElement('script');
  45.         sc.src = u;
  46.         sc.id = 'quix';
  47.         sc.type = 'text/javascript';
  48.         void(heads[0].appendChild(sc));
  49.       }
  50.     }
  51.   }
  52. }
Pages: prev1 ... 86 87 88 89 90 [91] 92 93 94 95 96 ... 113next