0
ここ
は私のファイル..ですクリックに反応し、それが開かれたタブ内のすべてのタグのために捜しますとの国境にそれらを持っている拡張モジュールをビルドするには、この使命を持っている: mainfest:我々はミッションが完了し取得する方法私のコードに欠けているものを
<style>
.ul_style{
border: 1px solid;
position: relative;
width: 25%;
}
.style2{
position: absolute;
top: 0;
right: 0;
border: 1px solid green;
}
#url{
width: 500px;
}
</style>
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script>
function ul_checker(){
$('ul').addClass('ul_style');
$('ul').append('<div class="close">X</div>');
$('.close').addClass('style2');
}
chrome.browserAction.onClicked.addListener(ul_checker);
</script>
、および他の言葉..:
{
"name": "My First Extension",
"version": "1.0",
"description": "The first extension that I made.",
"browser_action": {
"default_icon": "icon.png"
},
"permissions": [
"tabs",
"http://*/*",
"https://*/*"
],
"background_page": "popup2.html"
}
背景?
あなたは間違っていると思う、あなたはhttp://code.google.com/chrome/extensions/tabs([この]で拡張 – noob
見てから、背景ページにタブでスクリプトを実行しないようにする必要があります.html#method-executeScript) – noob