0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

iMacroでさくっとスクリーンショットを取る

Posted at

とあるサイトのスクリーンショットを取る必要があったのでFireFoxのiMacroというアドオンで対処することのした。

他でも活用する機会もあるかと思うのでメモしておく。
iMacroのDownloadフォルダにスクリーンショットが保存される。
デフォルトだとC:\Users\<username>\Documents\iMacros\Downloads

var pages  = ["page01", "page02", "page03"];
var site = "http://test.website.com/";

pages.forEach(function(e){
	var url = site + e;
	var png = e + ".png";
	
	var macro = `CODE:
	VERSION BUILD=8970419 RECORDER=FX
	SET !ERRORIGNORE YES
	TAB T=1
	URL GOTO=${url}
	SAVEAS TYPE=PNG FOLDER=* FILE="${png}"
	`;
	iimPlay(macro);

	return ;
	
});

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?