Export/Import Google Chrome Extensions

เคยมั้ยที่ มีเหตุจำเป็นต้องเปลี่ยน User หรือปัญหาอื่น ๆ ที่ทำให้ต้องใช้งาน Chrome ใหม่ แต่ไม่มี Extension ที่ถูกใจตามมาด้วย
ปัญหานี้แก้ไขได้ด้วยการ Export แล้วนำมา Import ใหม่ดังนี้
1. Extensions ของ Google Chrome จะเก็บอยู่ที่ /home/user/.config/google-chrome/Default/Extensions สำหรับ Ubuntu และ C:\Documents and Settings\UserName\Local Settings\Application Data\Google\Chrome\User Data\Default สำหรับ Windows
แต่จะเห็นว่ามันไม่ได้เก็บเป็นชื่อ Extensions แต่เป็นรหัสอะไรซักอย่าง

2.ใช้คำสั่งเพื่อดูรายละเอียดของ Extensions ดังนี้
2.1 เปิดหน้า Extensions ขึ้นมา chrome://extensions/
2.2 กดปุ่ม shift+ctrl+j
2.3 ป้อน code ดังนี้

1
returnExtensionsData=function(a){var o=[];for(var i=0,e=a.extensions,len=a.extensions.length;i<len;i++){o.push({id:e[i].id,name:e[i].name});}console.log('var extdata='+JSON.stringify(o)+';');};requestExtensionsData();

2.4 จะได้ผลลัพธ์ประมาณนี้

1
2
3
4
var extdata=[
{"id":"dabddpakolmhhlcblnooeacilidlbblh","name":"Publish sync for google+ & facebook"},
{"id":"lnlgojabfogikedjanecphloghlegpdm","name":"Phone 2 Google Chrome™"},
{"id":"oadboiipflhobonjjffjbfekfjcgkhco","name":"Google Chrome to Phone Extension"}];

3.จากขั้นตอนที่ผ่านมาจะเห็นว่า id จะตรงกับชื่อ folder ที่นี้ก็ดูตรง name ซึ่งเป็นชื่อ Extension ก็ไป copy folder นั้นมา แล้วก็คลิกตรง “Load unpacked extension… แล้ว browse ไป folder ที่เรา copy มา ก็เป็นอันเสร็จเรียบร้อย

ที่มา : http://superuser.com/questions/154770/how-to-export-extensions-of-google-chrome

Written by Komkid on January 23rd, 2012 with no comments.
Read more articles on IT Tips and JavaScript and Software.

Related articles

No comments

There are still no comments on this article.

Leave your comment...

If you want to leave your comment on this article, simply fill out the next form:

You have to be identified to write a comment.