Title: Disable protocol replacement within javascript files
Last modified: February 20, 2018

---

# Disable protocol replacement within javascript files

 *  Resolved [gRoberts1984](https://wordpress.org/support/users/groberts1984/)
 * (@groberts1984)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/disable-protocol-replacement-within-javascript-files/)
 * Hi there,
 * Is there a way to either whitelist or disable the URL Options functionality within
   javascript files?
 * Everything else works great, but a number of external URL’s within my javascript
   are being rewritten from https:// to //, which failed as the third party requires
   HTTPS.
 * The only solution at the moment is to use ‘http’ + ‘s://test.com’

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/disable-protocol-replacement-within-javascript-files/#post-9998620)
 * I have done a rollback on 2.2.8 with some minor bug fixes only, and will be looking
   at the other issues at a later time. Sorry and please update.
 * Rewriting to // should work the same as https, provided your site is already 
   on https too. What // does, is to link to the same protocol your site uses.
 * On 2.2.8, try to force https on the plugin settings and purge the cache.
 *  Thread Starter [gRoberts1984](https://wordpress.org/support/users/groberts1984/)
 * (@groberts1984)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/disable-protocol-replacement-within-javascript-files/#post-9998694)
 * Hey Raul,
 * Just to clarify, I don’t want FVM to replace some protocols, as the protocol 
   I am on, will be http:// however the resources I am using can only use [https://](https://wordpress.org/support/topic/disable-protocol-replacement-within-javascript-files/?output_format=md).
 * As previously noted, I have got around this for now by using ‘http’ + ‘s://test.
   com’
 * Thanks
 * Gavin
 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/disable-protocol-replacement-within-javascript-files/#post-10000430)
 * [@groberts1984](https://wordpress.org/support/users/groberts1984/) thanks for
   the feedback.
 * Currently the plugin will either force `//`, `http` or `https`, according to 
   your settings. This has been done to compensate for sites that migrated to SSL
   but often incomplete, so to avoid mixed content warnings.
 * I’ll add an option to prevent that url rewriting as an option, for a future update.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Disable protocol replacement within javascript files’ is closed to new
replies.

 * ![](https://ps.w.org/fast-velocity-minify/assets/icon-128x128.jpg?rev=1440946)
 * [Fast Velocity Minify](https://wordpress.org/plugins/fast-velocity-minify/)
 * [Support Threads](https://wordpress.org/support/plugin/fast-velocity-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/fast-velocity-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fast-velocity-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fast-velocity-minify/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Raul P.](https://wordpress.org/support/users/alignak/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/disable-protocol-replacement-within-javascript-files/#post-10000430)
 * Status: resolved