Skip to content

A lib to do callback when http site be injected by network operator

Notifications You must be signed in to change notification settings

jasonjcpeng/injected-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

injected-notify

http注入感知、防御工具 /A lib to do callback when http site be injected by network operator

Usage

npm i injected-notify --save

In common

  const InjectedNotify = require('injected-notify');
  InjectedNotify.init(['alicdn.com'], true, function(injectUrl) {
    // injectUrl = ['xxx.com/xxx.js','xxx.cn/xxx.js']
  });

In Browers

<head>
    <script src="./injected-notify.js"></script>
    <script>(function () {
        window.global_injected_notify.init(['alicdn.com'], true, function(injectUrl) {
          // injectUrl = ['xxx.com/xxx.js','xxx.cn/xxx.js']
        });
      })()
    </script>
</head>

About

A lib to do callback when http site be injected by network operator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published