Teleport Ultra/teleport Pro Redundancy Code Batch cleanup method

Source: Internet
Author: User

Teleport Pro is a great web site Offline Browsing tool (ie the site Download tool), Teleport Ultra is its enhanced version, but the use of this series of software download offline pages will contain a lot of redundant code (such as Tppabs), manual to modify the workload is very large, Here's how to bulk replace redundant code with software regular expressions (recommended for Dreamweaver's regular substitution feature).

Clear Tppabs Tags:

In the HTML file:

Find: \btppabs= "h[^"]* "

Replace: (empty)

A link to a picture in a CSS file (take a GIF image for example):

Search: Tpa=http://[^\s]*.gif

Replace: (empty)

Comments in the CSS file:

Search:/\*tpa.*?\*/

Replace: (empty)



Fix Confirm Link:

Look for: href= "*javascript:if\ (confirm\ (' (htt[^" \s]*). *? "

Replacement: href= "$"

Redundant code example: href= "javascript:if (Confirm (' http://www.xxxxx.com/\ n \ nthe file cannot be downloaded with teleport Ultra because it is not available, or the download is discarded, or the project is about to stop. \ n \ nyou want to open it on the server? ') window.location= ' http://www.xxxx.com/' "

Example Replace result: href=http://www.xxxx.com/


Teleport Ultra/teleport Pro Redundancy Code Batch cleanup method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.