Author Topic: Alternate hosts for imgur - specifically embedded.  (Read 2177 times)

0 Members and 1 Guest are viewing this topic.

Offline katushkin

  • Too Keycool for School
  • * Elevated Elder
  • Thread Starter
  • Posts: 3669
  • Location: Birmingham - Not Alabama
  • Just the guy
Alternate hosts for imgur - specifically embedded.
« on: Sun, 29 March 2015, 12:01:12 »
So work block imgur (surprise) so all these amazing picture on here I can't view until I get home. I have an extention plugged into chrome which someone has sent me. It's mainly for opening imgur links from Reddit, but I was hoping someone would be able to help me with something where I could see embedded imgur pictures but not through imgur.

I've tried just opening them in a new tab from the picture, and it doesn't work. Here is the script if anyone is interested.

More
Code: [Select]
// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// ==/UserScript==

var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; ++i) {
    var a = anchors[i];
    if (a.href && a.href.indexOf('http://imgur.com/') == 0) {
        a.href = a.href.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://filmot.com/') == 0) {
        a.href = a.href.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://i.imgur.com/') == 0) {
        a.href = a.href.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://i.filmot.com/') == 0) {
        a.href = a.href.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://www.imgur.com/') == 0) {
        a.href = a.href.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; ++i) {
    var img = imgs[i];
    if (img.src && img.src.indexOf('http://imgur.com/') == 0) {
        img.src = img.src.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://filmot.com/') == 0) {
        img.src = img.src.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://i.imgur.com/') == 0) {
        img.src = img.src.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://i.filmot.com/') == 0) {
        img.src = img.src.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://www.imgur.com/') == 0) {
        img.src = img.src.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}   

I tried adding geekhack to the "include" list but it didn't work. Probably did it wrong as I have no idea what I'm doing.

Edit: no idea how to make that box bigger =/
Can we get them to build the Alps ten feet higher and get Cherry to pay for it?
Katushkin's Clearout | Twitter | Steam | Instagram| Discord - katushkin

Offline Dihedral

  • Posts: 827
  • Location: United Kingdom
  • Mostly Harmless
Re: Alternate hosts for imgur - specifically embedded.
« Reply #1 on: Sun, 29 March 2015, 12:08:09 »
So work block imgur (surprise) so all these amazing picture on here I can't view until I get home. I have an extention plugged into chrome which someone has sent me. It's mainly for opening imgur links from Reddit, but I was hoping someone would be able to help me with something where I could see embedded imgur pictures but not through imgur.

I've tried just opening them in a new tab from the picture, and it doesn't work. Here is the script if anyone is interested.

More
Code: [Select]
// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// ==/UserScript==

var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; ++i) {
    var a = anchors[i];
    if (a.href && a.href.indexOf('http://imgur.com/') == 0) {
        a.href = a.href.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://filmot.com/') == 0) {
        a.href = a.href.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://i.imgur.com/') == 0) {
        a.href = a.href.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://i.filmot.com/') == 0) {
        a.href = a.href.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://www.imgur.com/') == 0) {
        a.href = a.href.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; ++i) {
    var img = imgs[i];
    if (img.src && img.src.indexOf('http://imgur.com/') == 0) {
        img.src = img.src.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://filmot.com/') == 0) {
        img.src = img.src.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://i.imgur.com/') == 0) {
        img.src = img.src.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://i.filmot.com/') == 0) {
        img.src = img.src.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://www.imgur.com/') == 0) {
        img.src = img.src.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}   

I tried adding geekhack to the "include" list but it didn't work. Probably did it wrong as I have no idea what I'm doing.

Edit: no idea how to make that box bigger =/

I manually use filmot by just replacing the i.imgur in the url with filmot.


i.imgur.com/m3da5.png

filmot.com/m3da5.png

Offline trizkut

  • * Global Moderator
  • Posts: 1207
  • Location: MA
Re: Alternate hosts for imgur - specifically embedded.
« Reply #2 on: Sun, 29 March 2015, 12:23:09 »
So work block imgur (surprise) so all these amazing picture on here I can't view until I get home. I have an extention plugged into chrome which someone has sent me. It's mainly for opening imgur links from Reddit, but I was hoping someone would be able to help me with something where I could see embedded imgur pictures but not through imgur.

I've tried just opening them in a new tab from the picture, and it doesn't work. Here is the script if anyone is interested.

More
Code: [Select]
// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// ==/UserScript==

var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; ++i) {
    var a = anchors[i];
    if (a.href && a.href.indexOf('http://imgur.com/') == 0) {
        a.href = a.href.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://filmot.com/') == 0) {
        a.href = a.href.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://i.imgur.com/') == 0) {
        a.href = a.href.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://i.filmot.com/') == 0) {
        a.href = a.href.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://www.imgur.com/') == 0) {
        a.href = a.href.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; ++i) {
    var img = imgs[i];
    if (img.src && img.src.indexOf('http://imgur.com/') == 0) {
        img.src = img.src.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://filmot.com/') == 0) {
        img.src = img.src.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://i.imgur.com/') == 0) {
        img.src = img.src.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://i.filmot.com/') == 0) {
        img.src = img.src.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://www.imgur.com/') == 0) {
        img.src = img.src.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}   

I tried adding geekhack to the "include" list but it didn't work. Probably did it wrong as I have no idea what I'm doing.

Edit: no idea how to make that box bigger =/

Can you show the modifications you tried on the source script?  Would make things easier  ;D


Offline katushkin

  • Too Keycool for School
  • * Elevated Elder
  • Thread Starter
  • Posts: 3669
  • Location: Birmingham - Not Alabama
  • Just the guy
Re: Alternate hosts for imgur - specifically embedded.
« Reply #3 on: Sun, 29 March 2015, 12:39:53 »
So work block imgur (surprise) so all these amazing picture on here I can't view until I get home. I have an extention plugged into chrome which someone has sent me. It's mainly for opening imgur links from Reddit, but I was hoping someone would be able to help me with something where I could see embedded imgur pictures but not through imgur.

I've tried just opening them in a new tab from the picture, and it doesn't work. Here is the script if anyone is interested.

More
Code: [Select]
// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// ==/UserScript==

var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; ++i) {
    var a = anchors[i];
    if (a.href && a.href.indexOf('http://imgur.com/') == 0) {
        a.href = a.href.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://filmot.com/') == 0) {
        a.href = a.href.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://i.imgur.com/') == 0) {
        a.href = a.href.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://i.filmot.com/') == 0) {
        a.href = a.href.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://www.imgur.com/') == 0) {
        a.href = a.href.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; ++i) {
    var img = imgs[i];
    if (img.src && img.src.indexOf('http://imgur.com/') == 0) {
        img.src = img.src.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://filmot.com/') == 0) {
        img.src = img.src.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://i.imgur.com/') == 0) {
        img.src = img.src.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://i.filmot.com/') == 0) {
        img.src = img.src.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://www.imgur.com/') == 0) {
        img.src = img.src.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}   

I tried adding geekhack to the "include" list but it didn't work. Probably did it wrong as I have no idea what I'm doing.

Edit: no idea how to make that box bigger =/

I manually use filmot by just replacing the i.imgur in the url with filmot.


i.imgur.com/m3da5.png

filmot.com/m3da5.png

Does that work with embedded links too?

So work block imgur (surprise) so all these amazing picture on here I can't view until I get home. I have an extention plugged into chrome which someone has sent me. It's mainly for opening imgur links from Reddit, but I was hoping someone would be able to help me with something where I could see embedded imgur pictures but not through imgur.

I've tried just opening them in a new tab from the picture, and it doesn't work. Here is the script if anyone is interested.

More
Code: [Select]
// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// ==/UserScript==

var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; ++i) {
    var a = anchors[i];
    if (a.href && a.href.indexOf('http://imgur.com/') == 0) {
        a.href = a.href.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://filmot.com/') == 0) {
        a.href = a.href.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://i.imgur.com/') == 0) {
        a.href = a.href.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://i.filmot.com/') == 0) {
        a.href = a.href.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://www.imgur.com/') == 0) {
        a.href = a.href.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; ++i) {
    var img = imgs[i];
    if (img.src && img.src.indexOf('http://imgur.com/') == 0) {
        img.src = img.src.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://filmot.com/') == 0) {
        img.src = img.src.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://i.imgur.com/') == 0) {
        img.src = img.src.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://i.filmot.com/') == 0) {
        img.src = img.src.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://www.imgur.com/') == 0) {
        img.src = img.src.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}   

I tried adding geekhack to the "include" list but it didn't work. Probably did it wrong as I have no idea what I'm doing.

Edit: no idea how to make that box bigger =/

Can you show the modifications you tried on the source script?  Would make things easier  ;D

The top bit was the only bit I added, all I put was:

// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// @include        http://geekhack.org/*
// ==/UserScript==

That's it. So it's probably completely wrong hah :)
Can we get them to build the Alps ten feet higher and get Cherry to pay for it?
Katushkin's Clearout | Twitter | Steam | Instagram| Discord - katushkin

Offline Dihedral

  • Posts: 827
  • Location: United Kingdom
  • Mostly Harmless
Re: Alternate hosts for imgur - specifically embedded.
« Reply #4 on: Sun, 29 March 2015, 12:41:50 »
So work block imgur (surprise) so all these amazing picture on here I can't view until I get home. I have an extention plugged into chrome which someone has sent me. It's mainly for opening imgur links from Reddit, but I was hoping someone would be able to help me with something where I could see embedded imgur pictures but not through imgur.

I've tried just opening them in a new tab from the picture, and it doesn't work. Here is the script if anyone is interested.

More
Code: [Select]
// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// ==/UserScript==

var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; ++i) {
    var a = anchors[i];
    if (a.href && a.href.indexOf('http://imgur.com/') == 0) {
        a.href = a.href.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://filmot.com/') == 0) {
        a.href = a.href.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://i.imgur.com/') == 0) {
        a.href = a.href.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://i.filmot.com/') == 0) {
        a.href = a.href.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://www.imgur.com/') == 0) {
        a.href = a.href.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; ++i) {
    var img = imgs[i];
    if (img.src && img.src.indexOf('http://imgur.com/') == 0) {
        img.src = img.src.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://filmot.com/') == 0) {
        img.src = img.src.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://i.imgur.com/') == 0) {
        img.src = img.src.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://i.filmot.com/') == 0) {
        img.src = img.src.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://www.imgur.com/') == 0) {
        img.src = img.src.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}   

I tried adding geekhack to the "include" list but it didn't work. Probably did it wrong as I have no idea what I'm doing.

Edit: no idea how to make that box bigger =/

I manually use filmot by just replacing the i.imgur in the url with filmot.


i.imgur.com/m3da5.png

filmot.com/m3da5.png

Does that work with embedded links too?

So work block imgur (surprise) so all these amazing picture on here I can't view until I get home. I have an extention plugged into chrome which someone has sent me. It's mainly for opening imgur links from Reddit, but I was hoping someone would be able to help me with something where I could see embedded imgur pictures but not through imgur.

I've tried just opening them in a new tab from the picture, and it doesn't work. Here is the script if anyone is interested.

More
Code: [Select]
// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// ==/UserScript==

var anchors = document.getElementsByTagName('a');
for (var i = 0; i < anchors.length; ++i) {
    var a = anchors[i];
    if (a.href && a.href.indexOf('http://imgur.com/') == 0) {
        a.href = a.href.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://filmot.com/') == 0) {
        a.href = a.href.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        a.href = a.href + '.jpg';
    }
    if (a.href && a.href.indexOf('http://i.imgur.com/') == 0) {
        a.href = a.href.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://i.filmot.com/') == 0) {
        a.href = a.href.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (a.href && a.href.indexOf('http://www.imgur.com/') == 0) {
        a.href = a.href.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; ++i) {
    var img = imgs[i];
    if (img.src && img.src.indexOf('http://imgur.com/') == 0) {
        img.src = img.src.replace('http://imgur.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://filmot.com/') == 0) {
        img.src = img.src.replace('http://filmot.com/', 'http://kageurufu.net/imgur/?');
        img.src = img.src + '.jpg';
    }
    if (img.src && img.src.indexOf('http://i.imgur.com/') == 0) {
        img.src = img.src.replace('http://i.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://i.filmot.com/') == 0) {
        img.src = img.src.replace('http://i.filmot.com/', 'http://kageurufu.net/imgur/?');
    }
    if (img.src && img.src.indexOf('http://www.imgur.com/') == 0) {
        img.src = img.src.replace('http://www.imgur.com/', 'http://kageurufu.net/imgur/?');
    }
}   

I tried adding geekhack to the "include" list but it didn't work. Probably did it wrong as I have no idea what I'm doing.

Edit: no idea how to make that box bigger =/

Can you show the modifications you tried on the source script?  Would make things easier  ;D

The top bit was the only bit I added, all I put was:

// ==UserScript==
// @name           Imgur.com/filmot.com to kageurufu.net converter
// @namespace      reddit
// @description    Changes imgur.com/filmot.com links to kageurufu.net
// @include        http://reddit.com/*
// @include        http://www.reddit.com/*
// @include        https://geekhack.org/*
// ==/UserScript==

That's it. So it's probably completely wrong hah :)


I think you're going to want to just copy url and paste it and change to filmot each time. Painful, but it will work.