Inline Mantis Images

CRX ID
apfandgagcebddggkbfjekglmfdaijcd
Status
No Privacy Policy Live on Store
Description from extension meta

Include links to images in page as images

Image from store
Inline Mantis Images
Description from store

Inline Mantis Images

The Mantis system attaches file as
http://*/mantis/file_download.php?file_id=55882&type=bug
with a name "xyz.gif"

This extension inlines the attached images to see them directly and need not to click on each image.

Your URL needs to match
"http://*/*"
or
"<all_urls>"

Version History:
1.2: Match all_urls (as our system changed to from http://.../mantis to http://mantis.domain.com/
1.1: Detect images case insensitive.

Here is the JavaScript source:
for ( var i = 0; i < document.links.length; ++i) {
myHref = document.links[i].href;

linkText = document.links[i].firstChild.data;
if (linkText != null) {
linkText = linkText.toLowerCase();
if (linkText.indexOf(".gif") >= 0 || linkText.indexOf(".png") >= 0
|| linkText.indexOf(".jpeg") >= 0
|| linkText.indexOf(".jpg") >= 0
|| linkText.indexOf(".bmp") >= 0)

{
var myIMG = document.createElement("img");
myIMG.src = document.links[i].href;
myIMG.alt = linkText;
myIMG.title = linkText;
document.links[i].appendChild(document.createElement("br"));
document.links[i].appendChild(myIMG);
document.links[i].appendChild(document.createElement("br"));
}
}
}

Latest reviews

Amaury Guimarães (MeninoBambinoGaroto) 2022-06-05

Works exactly how I hoped it would. Perfect!

Amaury Guimarães (MeninoBambinoGaroto) 2022-06-05

Works exactly how I hoped it would. Perfect!

Arkadiusz Dąbkowski 2013-03-02

OK.

Arkadiusz Dąbkowski 2013-03-02

OK.

Anonymous 2012-12-17

this is awesome! (tooo jeeeszt boszkiee!)

Anonymous 2012-12-17

this is awesome! (tooo jeeeszt boszkiee!)

Statistics

Installs
129
Market
Chrome Web Store
Category
Rating
4.88 (8 votes)
Last update
2017-08-29
Version 1.3
Languages
en