Email Search Plaguing for Chrome

Email Search Plaguing V-1.01

Untitled-1

manifest.json

{
“name” : “Email Search Plaguing V-1.01”,
“description” : “Just nother pluging”,
“version” : “0.1”,
“backgroun_page” : “background.html”,
“browser_action” :{
“popup” : “popup.html”,
“default_icon” : “ic.gif”
},
“permissions”: [
“tabs”,
http://*/*”,
https://*/*”,
“notifications”,
“contextMenus”],
“content_scripts”: [
{
“matches”: [“http://*/*”,”https://*/*”%5D,
“js”: [“jquery.js”],
“all_frames”: false
}]
}

popup.html

<!DOCTYPE HTML>
<html>
<title>Email Search Engine</title>
<style type=”text/css”>
body {
margin: 0px;
padding: 0px 20px 20px 20px;
color: #333;
font-family: Tahoma, Geneva, sans-serif;
font-size: 13px;
line-height: 1.5em;
background-color: #fff;
}
.orange {
color: #fef4e9;
height:25px;
border: solid 1px #da7c0c;
background: #f78d1d;
background: -webkit-gradient(linear, left top, left bottom, from(#faa51a), to(#f47a20));
background: -moz-linear-gradient(top, #faa51a, #f47a20);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#faa51a’, endColorstr=’#f47a20′);
}
.orange:hover {
background: #f47c20;
background: -webkit-gradient(linear, left top, left bottom, from(#f88e11), to(#f06015));
background: -moz-linear-gradient(top, #f88e11, #f06015);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#f88e11′, endColorstr=’#f06015′);
}
.orange:active {
color: #fcd3a5;
background: -webkit-gradient(linear, left top, left bottom, from(#f47a20), to(#faa51a));
background: -moz-linear-gradient(top, #f47a20, #faa51a);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=’#f47a20′, endColorstr=’#faa51a’);
}
h1 {
text-shadow: 0 1px 0 #ccc,
0 2px 0 #c9c9c9,
0 3px 0 #bbb,
0 4px 0 #b9b9b9,
0 5px 0 #aaa,
0 6px 1px rgba(0,0,0,.1),
0 0 5px rgba(0,0,0,.1),
0 1px 3px rgba(0,0,0,.3),
0 3px 5px rgba(0,0,0,.2),
0 5px 10px rgba(0,0,0,.25),
0 10px 10px rgba(0,0,0,.2),
0 20px 20px rgba(0,0,0,.15);
}
/* Image in Text Box */
.tb11 {
background:#FFFFFF url(search.png) no-repeat 4px 4px;
padding:4px 4px 4px 22px;
background-color : #99FFCC;
border: 3px double #CCCCCC;
height:18px;
}
a, a:link, a:visited {
color: #6193fa; text-decoration: none;
}
a:hover {
color: #C00;
text-decoration: underline;
}
</style>

<script src=”jquery.js”></script>
<script src=”jquery.json-2.3.min.js”></script>
<script type=”text/javascript”>

</script>
<script type=”text/javascript”>

$(document).ready(function(){
$(“#loading”).hide();
$(‘#searchMailButton’).click(function(){
var url = $(‘#url’).val();
$(“#loading”).show();
$.post(‘your_url’,{ url: url},function(data){
$(‘#emailFeedback’).html(data);
$(“#loading”).hide();
});

});
});

function my_url()
{
// var url = window.location.href;
// document.getElementById(‘url’).value = url ;
chrome.tabs.getSelected(null, function(tab) {
//tab = tab.id;
var currentURL = tab.url;
document.getElementById(‘url’).value = currentURL ;
});
}

function clickHandeler(){
//alert(‘Sanjoy’);
window.webkitNotifications.createNotification(ic.gif,”clicked”,”It was clicked”).show();
}

</script>
</head>

<body onload=”my_url()”>

<form method=”post”>
<h1>Email Search Plaguing V-1.01</h1>
<b style=”font-weight:bold;”>Please enter full URL of the page to search (including http://):</b>
<input id=”url” type=”text” name=”url” size=”65″ value=”” /><br /><br />
<input class=”orange” id=”searchMailButton” type=”button” value=”Search Emails” onClick=”clickHandeler()”/>

</form>
<div id=”loading”>
<img src=”ajax-loader.gif” alt=”Loading” />
</div>
<div id=”emailFeedback”></div>

<br />
<div style=”font-weight:bold;”>
Developed by: <a href=”http://www.s4sajal.wordpress.com&#8221; target=”_blank”>Sanjoy Debnath</a> Contact : <a href=”mailto:s4sanjoy@gmail.com” target=”_blank”>s4sanjoy@gmail.com</a>
</div>
</body>

</html>

Download

Advertisements