PHPackages                             soderlind/additional-javascript - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. soderlind/additional-javascript

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

soderlind/additional-javascript
===============================

Add JavaScript using WordPress Customizer

1.1.6(10mo ago)41.1k↑62.5%3[1 PRs](https://github.com/soderlind/additional-javascript/pulls)GPL-2.0-or-laterPHPCI passing

Since Oct 13Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/soderlind/additional-javascript)[ Packagist](https://packagist.org/packages/soderlind/additional-javascript)[ Docs](https://github.com/soderlind/additional-javascript)[ Fund](https://paypal.me/PerSoderlind)[ RSS](/packages/soderlind-additional-javascript/feed)WikiDiscussions main Synced yesterday

READMEChangelog (7)Dependencies (1)Versions (18)Used By (0)

Additional JavaScript for WordPress Customizer
==============================================

[](#additional-javascript-for-wordpress-customizer)

[![](assets/additional-javascript.png)](assets/additional-javascript.png)

About
-----

[](#about)

**Additional JavaScript for WordPress Customizer** lets you add JavaScript code, to the front-end, using the WordPress Customizer - safely and with live preview.

Features
--------

[](#features)

- Add custom JavaScript through the familiar WordPress Customizer interface
- Live preview of JavaScript changes
- Syntax highlighting in the editor
- Error reporting for JavaScript syntax issues
- Revision history for your JavaScript code (uses WordPress post revisions)
- Secure implementation - only users with the 'unfiltered\_html' capability can edit JavaScript
- Clean, minimal interface focused on code editing
- Works with any WordPress theme

Security
--------

[](#security)

This plugin restricts JavaScript editing to users with the 'unfiltered\_html' capability, which by default is only granted to administrators on single site installations and super administrators on multisite installations.

Installation
------------

[](#installation)

- **Quick Install**

    - Download [`additional-javascript.zip`](https://github.com/soderlind/additional-javascript/releases/latest/download/additional-javascript.zip)
    - Upload via Plugins &gt; Add New &gt; Upload Plugin
    - Activate the plugin.
- **Composer Install**

    ```
    composer require soderlind/additional-javascript
    ```
- **Updates**

    - Plugin [updates are handled automatically](https://github.com/soderlind/wordpress-plugin-github-updater#readme) via GitHub. No need to manually download and install updates.

Usage
-----

[](#usage)

1. Navigate to Appearance → Customize in your WordPress admin area
2. Click on the "Additional JavaScript" section at the bottom of the customizer menu
3. Add your JavaScript code in the editor
4. See the live preview of your changes
5. Click "Publish" to apply your JavaScript to the site

Requirements
------------

[](#requirements)

- WordPress 6.3 or higher
- PHP 8.2 or higher
- User with `unfiltered_html` capability

Frequently Asked Questions
--------------------------

[](#frequently-asked-questions)

### Who can add JavaScript using this plugin?

[](#who-can-add-javascript-using-this-plugin)

Only users with the 'unfiltered\_html' capability can add JavaScript using this plugin. By default, this is limited to administrators on single site installations and super administrators on multisite installations.

### Will this slow down my site?

[](#will-this-slow-down-my-site)

No, the plugin is designed to be lightweight and only loads the necessary scripts and styles when needed.

### Where is the JavaScript added on my site?

[](#where-is-the-javascript-added-on-my-site)

The JavaScript is added at the end of the `` section of your site with a priority of 110.

Changelog
---------

[](#changelog)

### 1.1.4

[](#114)

- Enhanced class loading for the GitHub plugin updater.

### 1.1.3

[](#113)

- Use generic [WordPress Plugin GitHub Updater](https://github.com/soderlind/wordpress-plugin-gitHub-updater?tab=readme-ov-file#wordpress-plugin-github-updater)

### 1.1.2

[](#112)

- Minor code improvements

### 1.1.1

[](#111)

- Add plugin updater

### 1.1.0

[](#110)

- Updated compatibility with WordPress 6.5
- Code improvements and optimization
- Enhanced security measures

### 1.0.0

[](#100)

- Initial release

Copyright and License
=====================

[](#copyright-and-license)

Additional JavaScript is copyright 2018-2025 Per Soderlind

Additional JavaScript is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.

Additional JavaScript is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Extension. If not, see .

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance59

Moderate activity, may be stable

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 97.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~220 days

Recently: every ~14 days

Total

9

Last Release

328d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1649452?v=4)[Per Søderlind](/maintainers/soderlind)[@soderlind](https://github.com/soderlind)

---

Top Contributors

[![soderlind](https://avatars.githubusercontent.com/u/1649452?v=4)](https://github.com/soderlind "soderlind (42 commits)")[![modelm](https://avatars.githubusercontent.com/u/330857?v=4)](https://github.com/modelm "modelm (1 commits)")

---

Tags

wordpresswpcontrolcustomizer

### Embed Badge

![Health badge](/badges/soderlind-additional-javascript/health.svg)

```
[![Health](https://phpackages.com/badges/soderlind-additional-javascript/health.svg)](https://phpackages.com/packages/soderlind-additional-javascript)
```

###  Alternatives

[roots/bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure

6.5k463.8k2](/packages/roots-bedrock)[ffraenz/private-composer-installer

A composer install helper for private packages

2321.7M5](/packages/ffraenz-private-composer-installer)[proteusthemes/wp-customizer-utilities

Advanced WordPress customizer controls and settings for better user experience.

329.9k1](/packages/proteusthemes-wp-customizer-utilities)[10up/10up-experience

The 10up Experience plugin configures WordPress to better protect and inform clients, aligned to 10up's best practices

139507.8k](/packages/10up-10up-experience)[gotoandplay/gravityforms-composer-installer

A composer install helper for Gravity Forms

32408.3k](/packages/gotoandplay-gravityforms-composer-installer)[seravo/seravo-plugin

Enhances WordPress with Seravo.com specific features and integrations

40170.1k2](/packages/seravo-seravo-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
