Push exempt:
Danmu component source code: https://github.com/teakong/danmu
<!-- 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&hideDialog=1&hideIcon=1&danMu=0"></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 = a compact click description built from ancestor path, text snippet and click position, up to 1000 chars, not the full HTML) |
statHead | head type for the stat plugin visit push (default visit). Set only via WebsitePusher.init({statHead:"..."}), not a URL param |
statClick | Whether the stat plugin reports clicks (0=no, 1=yes, default 1). Set only via WebsitePusher.init({statClick:0}), not a URL param |
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.control | Bottom-left control panel: a gear button opens the danmu on/off switch plus opacity / display-area / font-size / speed sliders and a reset-to-default; the on/off state is persisted in localStorage (danmu_enabled) and restored on refresh |
plugins.input | Bottom danmu send box: click the bottom-right icon to expand, Enter to send (via the trigger API, visible to all pages on the same channel), Esc or × to close |
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) |
aiDanMu | AI danmu polling interval (sec, 0=off). URL shortcut for danMuSetting.aiDanMu; e.g. danmu.js?aiDanMu=30 polls and generates AI danmu every 30s |
hideIcon | Hide the bottom-right floating icon (0=show, 1=hide). URL shortcut for danMuSetting.hideIcon |
autoInit | Auto-initialize (0=no, 1=yes, default 1). 0 = load dependencies only without auto init; listen for the websitePusherReady event or window.onWebsitePusherReady callback, then call WebsitePusher.init() yourself |
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)