Difference between revisions of "CanvasJS - Remove "Trial Version" Label"

From Nearline Storage
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
  
 
1. De-minify canvasjs.min.js:
 
1. De-minify canvasjs.min.js:
 +
  $ git clone https://github.com/beautify-web/js-beautify.git 
 
   $ python -m venv jsbeautify
 
   $ python -m venv jsbeautify
 
   $ source jsbeautify/bin/activate
 
   $ source jsbeautify/bin/activate
 +
  $ cd src/js-beautify/python
 +
  $ python setup.py install
 
   $ js-beautify canvasjs.min.js >/tmp/canvasjs.js
 
   $ js-beautify canvasjs.min.js >/tmp/canvasjs.js
 
2. Edit /tmp/canvasjs.js at line 1738 (approximately):
 
2. Edit /tmp/canvasjs.js at line 1738 (approximately):

Latest revision as of 02:42, 22 April 2020

CanvasJS 2.3.2

1. De-minify canvasjs.min.js:

 $ git clone https://github.com/beautify-web/js-beautify.git  
 $ python -m venv jsbeautify
 $ source jsbeautify/bin/activate
 $ cd src/js-beautify/python
 $ python setup.py install
 $ 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