Inline Mantis Images Chrome 插件, crx 扩展下载

 收录于6年前 阅读数 76

扩展ID: apfandgagcebddggkbfjekglmfdaijcd

Include links to images in page as imagesInline 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"));
		}
	}
}
名称 Inline Mantis Images
插件标识 apfandgagcebddggkbfjekglmfdaijcd
平台 Chrome
评分 0
评分人数 9
插件主页

作者 [email protected]
版本号 1.3
大小 8.76 KB
官网下载次数 276
分类 查看更多 web开发 分类下的扩展插件
下载地址
更新时间 2017-08-29 00:00:00
举报
回复

大家在找这些插件