Inline Mantis Images

Include links to images in page as images

什麼是Inline Mantis Images?

Inline Mantis Images是由[email protected]開發的Chrome擴展程式,該擴展的主要功能是“Include links to images in page as images”。

擴展截圖

screenshot

下載Inline Mantis Images擴展crx文件

下載Inline Mantis Images擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。

擴展使用說明

                        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
 ""

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 Inline Mantis Images
ID apfandgagcebddggkbfjekglmfdaijcd
官方網址 https://chromewebstore.google.com/detail/inline-mantis-images/apfandgagcebddggkbfjekglmfdaijcd
簡介 Include links to images in page as images
檔案大小 9.5 KB
安裝次數 248
目前版本 1.3
更新時間 2017-08-29
上架時間 2017-08-29
評分 4.88/5 共 8 次評分
開發者 [email protected]
電子郵箱 [email protected]
付費類型 free
支援的語言 en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 2,
    "name": "Inline Mantis Images",
    "version": "1.3",
    "description": "Include links to images in page as images",
    "icons": {
        "48": "icon48.png",
        "128": "icon128.png"
    },
    "author": "Stefan Cordes",
    "content_scripts": [
        {
            "matches": [
                "http:\/\/*\/*",
                ""
            ],
            "js": [
                "inlineImages.js"
            ],
            "run_at": "document_end"
        }
    ],
    "homepage_url": "https:\/\/github.com\/rscadrde\/inline-mantis-images"
}