Push exempt:
<!-- One-line code to push a danmu --> $.getJSON("https://www.phprm.com/services/push/trigger/4d05f4abdb0a0c2a0269900809946903?head=This is a danmu");
$.getJSON() call trigger interface writes a danmu record on the backend. Only head is required; avatar is optional and defaults automatically. One-Line Visit Analytics for Offline HTML and Websites No Backend
Copy the script tag below into any page of your site to enable visit analytics. Open Channel Management to review visit trends, PV/UV, devices and individual visits, with date-range filters and Excel export.
<!-- One script tag to enable website visit analytics --> <script src="https://ws.phprm.com/static/customer/js/danmu.js?appName=your_app_name_for_stats&channelCode=4d05f4abdb0a0c2a0269900809946903&plugins=stat"></script>
API Test
Fill in the message content, or trigger multiple channels directly via URL:
One-Line Danmu JS Integration No Backend
Drop the following <script> danmu.js on any page of your site. danmu.js auto-loads dependencies and initializes the danmu plugin — no backend needed.
<!-- One-line JS to integrate AI danmu --> (function() { var dm = document.createElement("script"); dm.src = "https://ws.phprm.com/static/customer/js/danmu.js?appName=your_app_name_for_stats&channelCode=your_channel_code&hideDialog=1&danMu=1"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(dm, s); })();
channelCode is your channel code. Sign up and create one. After domain verification you may skip channelCode; a channel is created for your URL automatically. Parameters
| Parameter | Description |
|---|---|
appName | Custom app name for stats |
channelCode | Channel code from registration; optional after domain verification |
plugins | Plugin names, comma-separated, several at once (plugins=stat or plugins=stat,panel). File-style names like stat.js are also accepted; empty = no plugin |
plugins.stat | Visit analytics: fires one head=visit push on page load, plus one head=click push when an element is clicked (body = that element outerHTML) |
plugins.ad | Ad slot: messages with head=广告 are not rendered as danmu but as a bottom-right ad image, supports url/hold (dwell seconds) |
plugins.panel | Top-right panel: push window (channel code / login) and danmu settings form. Must be requested explicitly with panel |
plugins.axios-report | Axios API error reporting (head=axios, body = error JSON) |
plugins.vue-report | Vue2/3/4 errors and warnings reporting (head=vue, body = error JSON) |
hideDialog | Hide chat dialog (0=show, 1=hide) |
danMu | Enable danmu (0=off, 1=on) |
danMuSetting | Danmu appearance config (nested object, see children below) |
danMuSetting.opacity | Background opacity (0~100, 100=opaque) |
danMuSetting.size | Danmu font size (8~33) |
danMuSetting.speed | Scroll speed (seconds) |
danMuSetting.close | Show close button (0=no, 1=yes, takes precedence over like) |
danMuSetting.like | Show like button (0=no, 1=yes); only effective when danMuSetting.close=0 |
danMuSetting.bottom | Distance from screen bottom (px, effective when bottomradio=1) |
danMuSetting.bottomradio | Position by bottom (0=random, 1=fixed) |
danMuSetting.aiDanMu | AI danmu polling interval (sec, 0=off). Supports danmu.js?aiDanMu=30 to poll every 30s |
danMuSetting.aiDanMuUrl | Custom AI danmu endpoint |
danMuSetting.selector | Danmu mount DOM selector (default body) |
danMuSetting.color | Danmu text color |
danMuSetting.hideIcon | Hide the floating icon in the bottom-right (0=show, 1=hide). Supports danmu.js?hideIcon=1 |
Browser Danmu Widget
Zero-code danmu widget — pop-up push windows on any site. Desktop, mobile, tablet supported. Add it as a bookmarklet to start.
How to use the widget →AI Prompt: Scrape Page Content and Push to Your Business API
Open the MCP page to replace the preset channel code, click "Copy Full SKILL to AI", send it to any AI tool, then copy the prompt below.
Please emulate a browser to scrape the structured fields of the given page (e.g. https://push.phprm.com/exempt.html), format the content as JSON, and use push-server to push it to the business server (webhook JSON)