// ==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/?');
}
}
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.MoreCode: [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 =/
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.MoreCode: [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 =/
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.MoreCode: [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
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.MoreCode: [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
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.MoreCode: [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.MoreCode: [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 :)