AWeb Modes


Change frequently used settings from a Reaction GUI
by Gabriele Favrin



The author is in no way responsible for any damages this program may cause.
Redistribution or modification are forbidden. If you improve this script send me the new version in an E-Mail
.



Index:

Introduction

AWeb Modes is an ARexx script that allows you to easily change frequently used AWeb settings without the need to search for them in the various settings windows. AWeb Modes uses William Parker's AWNPipe: to build a Reaction interface with menues and hotkeys.

Installation

Installer should already have installed all the files in the proper directories and configured AWeb, but if you prefer to install AWeb Modes manually you must proceed as described:
  1. Copy to the "AWeb/Plugins/" directory the following files:



  2. Configure AWeb. AWeb Modes may be called from AWeb in several ways. You can use a userbutton, a menu entry or a key.

    Note: if you are using AWeb 3.3SE you can't configure menues or keys. In the 3.3SE version AWeb Modes it's assigned by default to an user button.

    To set AWeb Modes in AWeb (as a menu, user button or a key), add the following entry in the appropriate AWeb GUI settings.

    Title: Modes
    Command: RUN AWebPath:Plugins/AWebModes.awebrx

Usage

AWeb Modes opens a Reaction interface from which you may change the various settings. If it's started while another copy is running, the second one will simply move the first copy in front of all other windows and quit. In some cases it can be faster to restart AWeb Modes then search for its window.

These are the available functions:

AWeb Modes GUI

Strict (HTML 2.0/3.2/4.0)
Tolerant (also 3.0/MSIE/NS HTML)
Compatible (badly written HTML)
These three options are mutually exclusive. You can choose one of them (with mouse or the hotkeys S, T or C) to get the relative HTML mode.

Use Frames (hotkey: F)
Toggle frame usage.

Nominal (fixed) frames height (hotkey: N)
Toggle the frame height to make framesets more readable on low resolution screens.

This option can only be changed when "Frame usage" is enabled.

GIF animations playback (hotkey: G)
Toggle GIF animation playback.

Note: this option can be changed only if the AWebGif.awebplugin has been already been used in the current AWeb session to display a GIF image.

JavaScript usage (hotkey: J)
Toggle JavaScript usage.

Show JavaScript errors (hotkey: E)
Toggle the displaying of errors found in JS scripts.

Note: this option can be changed only if "JavaScript usage" is enabled.

Suppress JS banner window (hotkey: B)
Toggle the displaying of the JS generated banner popup windows.

Note: this option can be changed only if "JavaScript usage" is enabled and only from the full version of AWeb.

Anonymous browsing (hotkey: A)
Toggle the stripping of the HTTP "referrer" header which sends the URL of the last visited page to servers.

Spoofing (hotkey: P)
Toggle the spoof of Netscape 3.x when sending the "User Agent" HTTP header to a server.

Note: AWeb can spoof other browsers as well but NS 3.x is the one with the most similar JavaScript support, so in most cases it's best spoof to use. Note also that this option can only be changed from the full version of AWeb.

Ignore MIME TYPE server header (hotkey: M)
Toggle the ignoring of the server "MIME type" header (useful only for badly configured servers, if left turned on it can cause serious problems in your daily browsing!).

RFC 2109 compliant cookies (hotkey: 9)
Toggle the usage of the cookies definition standard described in RFC 2109. Disabling it can improve compatibility with some servers, other sites may need it turned on.

Show Navigation gadgets (hotkey: V)
Toggle the displaying of the navigation buttons, status, and url fields.

Show User buttons (hotkey: U)
Toggle the displaying of the user buttons.

Note: when either of the last two option is changed, all the open browser windows are closed and then reopened. AWeb Modes waits 75 ms and then put it's window in front of all others. This delay is usually long enough. In case it is not, it's possible to get AWeb Modes back in front by just restarting it.

AWeb Modes menues

AWeb Modes offers some options in the Project menu. Beyond the about menues, there is a Window menu with the following items:

Snapshot (hotkey: right Amiga + S)
Saves the current position and size of the AWeb Modes GUI.

Unsnapshot (hotkey: right Amiga + U)
Forget the saved position and size of the AWeb Modes GUI.

Small (hotkey: right Amiga + M)
Toggle between a big and small AWeb Modes window.

ARexx host

Thanks to the power of AWNPipe: this humble ARexx script has also an... ARexx interface!

The ARexx host is called AWEBMODES and supports the following commands:

front
Move the AWeb Modes GUI in front of all other windows.

quit
Tells AWeb Modes to close its GUI and quit.

If you have written a program that forces AWeb to open a new window, you can bring AWeb Modes back to the front automatically. Here is a short example.

'NEW "file://localhost/'filename'"'
if Show('P','AWEBMODES') then address AWEBMODES 'front'

History

V1.2

V1.1

V1.0