Then I tried creating my own Google Chrome Extension, just for fun. You know how we programmers find this amusing. I did create one, but did not publish it on the Extension Gallery. So now I'm sharing it with the whole world, or the three people that will read this.
What does it do?
It opens a new tab redirecting to the same page you see when you click on the Tweet Button, e.g. http://twitter.com/share?url=http://flimmx.blogspot.com/&text=fLim's bLog .
So here's what you'll need:
1. Create a folder and name it "Tweet This", or as you wish.
2. Create a file named: manifest.json (plain text file). Paste the following text, and save it.
{
"name": "Tweet This",
"version": "1.0",
"description": "Tweet This",
"background_page": "todo.html",
"browser_action": {
"default_icon": "icon_64.png"
},
"icons": { "16": "icon_16.png",
"48": "icon_48.png",
"128": "icon_128.png"
},
"permissions": [
"tabs"
]
}
3. Create a file named todo.html and paste the following text.
<html>
<head>
<script>
// Called when the user clicks on the browser action.
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.create({url: "http://twitter.com/share?url="+ tab.url +"&text="+ tab.title});
});
</script>
</head>
</html>
4. Save these icons into your "Tweet This" folder.
5. Go to the Extensions tab (chrome://extensions), expand "Developer Mode," click on "Load unpacked extension..." and select the folder which contains your files.
I know I could have added screenshots and all, but I'm just lazy. DIY!
Cheers!
0 comments:
Post a Comment