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:
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.
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:
- Copy to the "AWeb/Plugins/" directory the following files:
- AWebModes.awebrx
- AWebModes_doc.html
- Configure AWeb. AWeb Modes may be called from AWeb in
several ways. You can use a user button, a menu entry or a key.
Note: if you are using AWeb 3.4SE you can't configure menues
or keys. In that version AWeb Modes is 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
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 than search for its window.
These are the available functions:
AWeb Modes GUI
- HTML Mode (hotkey: H)
- This chooser allows to select the HTML mode used by AWeb to interpret
documents. There are three modes: strict, tolerant and compatible. Strict
means only HTML 2.0, 3.2 and 4.0 support. Tolerant adds support for HTML 3.0
and some MSIE and NS extensions. Compatible mode supports badly written HTML
but may mess with correct HTML.
Note: by modifying this option a reparse of all currently
displayed documents is performed. This could take some time on slower
systems.
- Use Frames (hotkey: F)
- Toggle frame usage.
Note: by modifying this option a reparse of all currently
displayed documents is performed. This could take some time on slower
systems.
- Fixed frames height (hotkey: I)
- 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 already been used in the current AWeb
session to display a GIF image.
- JavaScript mode (hotkey: J)
- This chooser allows to select the JavaScript mode. Options are: off
(JavaScript usage is disabled), fastidious (AWeb interprets only JavaScript
1.1 scripts); omnivorous (AWeb tries to parse any script).
Note: by modifying this option a reparse of all currently
displayed documents is performed. This could take some time on slower
systems.
- Suppress JavaScript banners (hotkey: B)
- Toggle the displaying of the JS generated banner popup windows.
Note: this option can be changed only if
"JavaScript mode" is different from "Off" and only
from the full version of AWeb.
- Show JavaScript errors (hotkey: E)
- Toggle the displaying of errors found in JS scripts.
Note: this option can be changed only if
"JavaScript mode" is different from "Off".
- Watch JavaScript (hotkey: W)
- Toggle the monitoring over suspicious JS scripts which may keep system
busy forever (endless loops) or eat all the memory.
Note: this option can be changed only if
"JavaScript mode" is different from "Off".
- Spoof (hotkey: S)
- This chooser allows to select which browser to spoof with the HTTP
"User Agent" header while requesting a document. Different
browsers may cause different behaviours. Suggested browser to spoof is
Mozzilla 3.01. Recent ones may cause access to documents not compatible with
AWeb.
Note: this option can only be changed 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.
- Ignore MIME types (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.
- Disable disk caching (hotkey: C)
- Toggle the cache of documents and images on disk.
Note: this option can only be changed from the full
version of AWeb.
- Load only images on site (hotkey: L)
- Toggle the restriction over image's source. When this option is enabled,
only images from the same site of the document are loaded. This often
allows to not waste time and bandwidth with banners.
- Show navigation gadgets (hotkey: N)
- 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 its 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 menues as well. The
Window item in Project menu contains the following subitems:
- 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.
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'
ARexx host can be useful also for the AWeb shutdown script. By adding this
lime (if not already present or if you change the default script)
AWeb Modes will be automatically closed while
quitting from AWeb.
if Show('P', 'AWEBMODES') then address AWEBMODES 'quit'
V2.0
- Rewrote (mostly) from scratch. Now faster, more reliable and easier to
update.
- Updated options to AWeb 3.4 (both FULL and SE are supported).
- Enanched Spoof support.
- Added some new options.
V1.2
- Added ARexx host and ability to move the window to the front when restarted.
- Added help key support and a hotkey for the "small" menu item.
V1.1
- Added snapshot functions.
- Added the "small" option.
V1.0