Main Menu
Home
Customize Your Web
Mouseless Browsing
Execute JS
Highlight Focus
Impressum
Customize Your Web and Mouseless Browsing are free software (BSD), but if you find it useful, I would be glad if you support it with a donation :-)
Current donation amount: $130
Execute JS Documentation PDF Print E-mail
 
Image
 
Target window / Content window
Defines the target window-object on which the JS Code is executed or on which functions of objects could be modified. For windows which do not have a content (browser) the checkbox is disabled.
 

JS Code execution

In this textbox JS Code can be entered and executed. The following features are available:

  • Execution of JS Code
    The code is executed via the eval-function on the target window defined with "Target window / Content window". The code can be executed via the button "Execute" or by pressing "Ctrl+Enter". The object given back by the eval-function is displayed in the result textbox by calling its toString() method.
  • Printing Properties of object
    With the "Properties"-button the object resulting from the JS code are printed to the result textbox.
  • Comand History
    All executed commands a stored in a command history. This history is also persisted on exit (up to configured max. number of commands). With "Ctrl+Up/Down" you can navigate through the command history.
  • Code completion
    With "Ctrl+Space" basic code completion is available. This is achived by evaluating the current expression (i.e. the code snippet from the current cursor postion back to the next space) on the target window. The code completion is case-sensitive.
  • Command abbreviations
    In the configuration dialog (Execute JS --> Configuration) so-called command abbreviations could be defined e.g. doc for document. Before executing the JS code all abbreviations are substituted. All available command abbreviations could be choosen via a context menu triggered with "Ctrl+Shift+Space"
 

Modification of functions

In the textbox "Target object" a more nested target object than a window-object for searching and modifying a function could be choosen. The target object is evaluated by calling the eval-function of the target window with the contents of this textbox. If the evaluation fails, the background-color of the textbox changes to red. If the "Target object" textbox is left empty the target object for the function search is the target window.

In the "Function name" textbox a any part of a function name could be entered. By pressing "Enter" or the  "Search"-button the search is triggered and all functions containing the entered string are displayed in the drop-down listbox. By selecting one the appropriate function is loaded into the textbox beneath. There any changes could be done and finally resaved with the "Save"-button.

Even new functions could be defined by entering a new function body ("function(){....}") .

 

Last Updated ( Saturday, 29 December 2007 )
 
< Prev   Next >