Fixed firefoxes jsp issue. Because of the new cert jsp has and the fact that for some stupid reason you fucks are all posting http links to images, firefox is refusing to load images. So I wrote a greasemonkey script to change all img html tags to use the https protocol. This only fixes 80% of jsp since some idiots are still using tinypic which doesn't even support SSL connections.
Code
// ==UserScript==
// @name _Remap images to HTTPS
// @include https://forums.d2jsp.org/*
// @grant GM_addStyle
// ==/UserScript==
/*- The @grant directive is needed to work around a design change
introduced in GM 1.0. It restores the sandbox.
*/
var links = document.evaluate('//img[contains(@src, \'http://\')]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < links.snapshotLength; i++)
{
var thisLink = links.snapshotItem(i);
thisLink.src = thisLink.src.replace('http://', 'https://');
}
This post was edited by AbDuCt on Apr 9 2016 01:46pm