New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gitbook-plugin-statistics

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitbook-plugin-statistics - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

18

assets/statistics.js

@@ -18,9 +18,13 @@ require(["gitbook", 'jQuery'], function(gitbook, $) {

if (cnzzId !== 0) {
const res = '<div style=\'color: red\'>' +
'<script type="text/javascript">' +
'var cnzz_protocol = (("https:" == document.location.protocol) ? "https://" : "http://");' +
'document.write(unescape("%3Cspan id=\'cnzz_stat_icon_'+cnzzId+'\'%3E%3C/span%3E%3Cscript src=\''+cnzzUrl+'%3Fid%3D'+cnzzId+'\' type=\'text/javascript\'%3E%3C/script%3E"));' +
'</script>' +
'</div>';
$('body').append(res);
const hm2 = document.createElement('script');
hm2.src = cnzzUrl+'?id=' + cnzzId + '&web_id='+cnzzId;
const s2 = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(hm2, s2);
// const res = '<div style=\'color: red\'>' +
// '<script type="text/javascript">' +
// 'document.write(unescape("%3Cspan id=\'cnzz_stat_icon_'+cnzzId+'\'%3E%3C/span%3E%3Cscript src=\''+cnzzUrl+'%3Fid%3D'+cnzzId+'\' type=\'text/javascript\'%3E%3C/script%3E"));' +
// '</script>' +
// '</div>';
// $('body').append(res);
}

@@ -27,0 +31,0 @@ }

{
"name": "gitbook-plugin-statistics",
"version": "v1.0.15",
"version": "v1.0.16",
"description": "Gitbook 数据统计插件",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc