Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name APOLLO :: Rewrite HTTPS Image Hosts
- // @icon https://i.imgur.com/ppMrv8n.png
- // @namespace .
- // @description Rewrites non-HTTPS hosted images to HTTPS when possible
- // @include https://apollo.ch/*
- // @include https://tehconnection.eu/*
- // @version 1
- // @grant none
- // ==/UserScript==
- (function() {
- ['i.imgur.com',
- 'imgur.com',
- 'picload.org',
- 'img.photobucket.com',
- "'][src*='.photobucket.com/albums/",
- 'imageshack.com'].forEach (
- function( domain ) {
- document.querySelectorAll ( "img[src^='http://" + domain + "']" ).forEach(
- function ( el ) { el.src = 'https' + el.src.slice ( 4 ); }
- );
- }
- )
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement