Vdwebcontrol.js to Watermark

Source: Internet
Author: User
Tags watermark images

Vdwebcontrol.js can display CAD graphics in the browser (need to use their own conversion tool to convert CAD to VDS format, the tool is free, but the converted file with watermark information), support editing graphics.

Vdwebcontrol.js Trial version with copyright information in the center of the screen.

1. Format JS as readable

2, using Chrome debugging found is data:image/jpg;base64 format picture. The idea is to replace the original watermark image with a transparent PNG image.

Find Kd.setattribute ("src", "data:image/" + Iformat + "; base64," + ad.jpegdata);
Replaced by
var tmpimg= "ivborw0kggoaaaansuheugaaakoaaaapcayaaaclurl0aaaacxbiwxmaaa7eaaaoxagvkw4baaaaigniuk0aaholaacagwaa+ f8aaidpaab1maaa6maaadqyaaaxb5jfxuyaaabssurbvhja7njbeqaacmmwwl/ Nywoprekvm2sg3umaucgogbwmckbfqgbumcpgbaocuteqgbwjglhbqbgvjapgxahgvdaqrgwjylqwkhgvo4jrwagyfywkrswoyfqwkkyfo2juqpqaaad Wma3rydt1/2mriaaaaasuvork5cyii= ";
Kd.setattribute ("src", "data:image/png;base64," + tmpimg);

Run, the specific text is gone, but there is still a black box.

3, with Chrome debugging JS.

Found function functions wz is used to draw watermark images, function Bh (BU, QI) This.uw = function (img) for each move after the location of the watermark reset.

Added at the beginning of two functions

Return statement.

4. Run, the watermark is gone.

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.