Fehérke's GitHub Site == glue between Fehérke's GitHub hosted projects

Change Protocol

Once called Change http: / https: changed the protocol from/to http: and https:.

The old behavior was kept, but if you perform Shift-gesture, a popup list with the following protocols is displayed : http:, https:, spdy: and ftp:.

Not so important script, I posted it because a catch : window refers to the chrome. To get the same window object as JavaScript gets in the document’s context, you have to use window.content.

Screenshot

screenshot of the script's content menu

Usage

Perform a gesture to instantly change the current URL’s protocol between http: and https:.

Perform Shift-gesture to get a list of protocols and select the one to which you want to change the current URL’s protocol.

Configuration

Configuration not really supported.

But new protocols for the Shift-gesture’s popup list can be easily added.

Just copy & paste a line of the FireGestures.generatePopup()’s parameter array and edit it.

Versions

Plans

None. Maybe should cut off the path when changing to ftp: protocol. Maybe the same should be done for spdy: too. Undecided.

Download

You can find the related files on GitHub in my FireGestures-script repository’s popup-change-protocol directory :