RemBetweenTags 
RemBetweenTags helps a desktop user to remove specific codes or texts contained between specific tags from tag based documents such as HTML, XML, SGML formatted files. It does it with a simple drag-drop operation.
Motivation
While surfing the Web, you might encounter an interesting Web page that you want to save locally, hoping that you can view it later and that it will load faster. When you load that saved page, later, you realize that it is slow to load because Internet transactions are still required for loading dynamic advertising. You do not mind about advertising but to waste your time again is unacceptable. Most of those time-consuming effects are from scripts, internal frames and applets that are embedded in the Web page. In 99% of cases, removing these codes removes the effects without removing the content. This is the prime motive of this metascript. You may find other applications.
Description
Overview
Once a tag based document file is dropped into the target area, RemBetweenTags search for the specified tag pairs and remove any text found between these tags including the tags themselves. It then updates the content of the dropped file. The variant specifies which tags are involved.
Variants
- Default:
The tags are <IFRAME> and <SCRIPT> (with their complements). The effect is to remove codes that provoke Internet communication of an already saved html page.
- 1-Applet:
The tag <APPLET> with its complement. The effect is to remove the code that activates the Java interpreter from within the browser.
Tagged Drops
There is no tagged drop.
Untagged Drops
Only one untagged file drop is accepted.
Clipboard Use
The clipboard is not used.
Possible Metascript Messages
- WRN:
Expect 3+ args
The variant may contain invalid parameters
- WRN:
File not found
The dropped file may have been deleted or the read permission is not granted.
- WRN:
Unable to read
The dropped file may be corrupted.
- WRN:
Unable to write
The dropped file may be flagged as read only.
Other Considerations
No explicit Clear List command is required
Script Effects
Script inputs and outputs to the dropped file only; it updates its content. Note: If you are not sure, make a copy of that file, because the modifications are irreversible.
Requirements
- Executable:
java
- Script file(s):
bigfeetuty.jar for all variants; it must be located under the scripts sub-directory.
- IO access:
None
Side Effects:
- Clipboard Usage:
No
- No other side effect.
See also the Purpose section above.
Tasks:
- Removing text and code between specified tags
Removing text and code between specified tags
- Make sure that you have selected the proper variant
- Make sure that nothing is displayed on the green target area
- Using a file browser (ex. the Windows Explorer):
- Make the tag-formatted file (ex. an HTML file) visible (expanding directories as necessary)
- Press the mouse button when the cursor is on a tag-formatted file, drag the cursor to the D&Do target area then release the button.
- You should observe that:
- The dropped file has been updated (usually with a smaller file size)
- The drop target should display nothing
- The status message displays: INF: Exit = 0
This is it. You can use the newly-updated file.
Source
Please, add authors and owners for each version of the metascript
Owner(s):
- Company:
Big Feet Software
- License:
Freeware; you may use and modify this metascript and related script files. You cannot claim ownership of their original version.
Author(s):
- Name:
Marcel St-Amant
- Country:
CANADA
- Release Date:
2003-06-13
- Version:
1.0