CanvasJS - Remove "Trial Version" Label

From Nearline Storage
Jump to navigation Jump to search

CanvasJS 2.3.2

1. De-minify canvasjs.min.js:

 $ python -m venv jsbeautify
 $ source jsbeautify/bin/activate
 $ js-beautify canvasjs.min.js >/tmp/canvasjs.js

2. Edit /tmp/canvasjs.js at line 1738 (approximately):

 --- /tmp/canvasjs.js.orig	2020-03-20 10:49:03.820850535 -0400
 +++ /tmp/canvasjs.js	2020-03-20 10:52:17.740885754 -0400
 @@ -1735,7 +1735,7 @@
              return p
          };
          U.obj = {
 -            trVs: "Ush`m!Wdsrhno",
 +            trVs: "",
              fntStr: "qy!B`mhcsh-!Mtbhe`!Fs`oed-!Mtbhe`!R`or!Tohbned-!@sh`m-!r`or,rdshg",
              txtBl: "udyuC`rdmhod",
              fnt: "gnou",

3. Use a web site like https://jscompress.com to re-minify canvasjs.js