plugin-icon

Lightweight JS Snippet

投稿者: Jonas Hjalmarsson·
Add a small inline JavaScript snippet to one or more specific posts or pages, by post ID. No bloat, no front-end editor.
バージョン
1.4.1
最終更新日時
May 4, 2026
Lightweight JS Snippet

A minimal way to inject a single inline JavaScript snippet into the <head> of one or more specific posts, pages or products. You give it a comma-separated list of post IDs and the JS body — that is the entire surface area.

The point is the absence of features. There is no per-post UI, no script library, no CDN selector, no “fire on event” toggle. If all you need is to drop a tracking pixel or a tiny script on three specific pages, you do not want a 2 MB plugin that wants to manage your whole site.

Set it up under Settings Lightweight JS snippet. The page provides a textarea for the JS (no <script> tags — those are added for you) and a comma-separated list of post IDs to load it on.

無料有料プラン
インストールすることで、WordPress.com の利用規約サードパーティプラグイン利用規約に同意したことになります。
最大テスト回数
WordPress 6.9.4
このプラグインをダウンロードして、 サイトに使用できます。