Google, Facebook(ish), psdata.no, posten.no, Secure Pro part II :S

By amigamike Last update May 24, 2009 — Installed 439 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 0, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0

There are 2 previous versions of this script.

// ==UserScript==

// @name          Google, Facebook(ish), psdata.no, posten.no, Secure Pro part II :S

// @description   Google, Facebook(ish), psdata.no, posten.no, Secure Pro part II :S
// @namespace    href=*

// @include     https://*facebook.com*
// @include     https://*qxl.no*
// @include     http://*facebook.com*
// @include     http://*qxl.no*
// @include    http://*static.ak.fbcdn.net*
// @include    http://*static.ak.facebook.com*
// @include    https://*static.ak.fbcdn.net*
// @include    https://*static.ak.facebook.com*
// @include    http://*netshop.no
// @include    https://*netshop.no
// ==/UserScript==


var lianks = document.evaluate(
"//a[contains(@href, 'http')]",
document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);

for (var i = 0; i < lianks.snapshotLength; i++) {
var link = lianks.snapshotItem(i);
link.href = link.href.replace("http","https")
link.href = link.href.replace("httpss","https");
}

// ChangeLog
// Added netshop