🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

if-spm

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

if-spm

自动spm节点程序,用于跟踪网页元素

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
16
14.29%
Maintainers
1
Weekly downloads
 
Created
Source

IF-SPM

自动给链接追加SPM信息,给DOM追加

SPM Rule

DEMO:spm=APP080201.ow.main-home.1.4dea35a4lRuiq8

[App].[Page].[Module]-[ModulePart?].[idx].[PV]

全局调用

window.I_SPM

setAB(app, page)

设置SPM的APP和Page域

getCurSpm

获取当前的SPM

onSpmClick

updateConfig

更新配置

  • ignoreList A标签匹配的href将会忽略
  • spm_protocol 设置为 'i' 忽略特殊协议
  • getspmcd 设置获取Module和idx的策略
  • getPvId 获取页面的PV值
  • onSpmClick 针对data-spm-click属性的点击回掉

Keywords

SPM

FAQs

Package last updated on 02 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts