Skip to content

Commit

Permalink
logging statements removed
Browse files Browse the repository at this point in the history
  • Loading branch information
hareeshnagaraj committed Aug 13, 2014
1 parent 5604cd1 commit c155f3f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions boysenDom.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function removeGif(){
Function to add border clases appropriately
*/
function parseDom(){
console.log("parseDom");
//console.log.log("parseDom");
var all = document.getElementsByTagName("*");
var max=all.length;
var elementID;
Expand Down Expand Up @@ -81,15 +81,15 @@ function removeClasses(selected){
selected.className = selected.className.replace("hoverEffect" , '' );
}
catch(e){
// console.log(e);
// //console.log.log(e);
}
}

/*
Function to reset the borders and remove the box
*/
function clearDom(){
console.log("clearDom");
//console.log.log("clearDom");
var all = document.getElementsByTagName("*");
var max=all.length;
var elementID;
Expand Down
4 changes: 2 additions & 2 deletions boysenEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {
chrome.tabs.executeScript(null, {file: "boysenDom.js"});
}
if( request.action == "copy"){
console.log("tobeCopied : " + request.string);
//console.log("tobeCopied : " + request.string);
copy(request.string);
}
if(request.status == "finishedParsing"){
Expand All @@ -42,7 +42,7 @@ chrome.runtime.onMessage.addListener(function(request, sender, sendResponse) {

//keyboard shortcuts
chrome.commands.onCommand.addListener(function(command) {
console.log('Command:', command);
//console.log('Command:', command);
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
if(command == "show_details"){
chrome.tabs.sendMessage(tabs[0].id, {action: "beginParse"}, function(response) {
Expand Down
14 changes: 7 additions & 7 deletions boysenInsertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ var details = 0;

chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
console.log(request);
////console.log(request);
if (request.action == "finishedParsing"){
appendBox();
bindMouse();
}
if( request.action == "message"){
var message = request.message;
console.log(message);
//console.log(message);
}
if( request.action == "beginCopy"){
copyFromSignal();
Expand All @@ -42,7 +42,7 @@ function bindMouse(){
var offset = $(document).scrollTop();
var x = event.pageX;
var y = event.pageY - offset;
console.log(y);
//console.log(y);
var element = document.elementFromPoint(x,y);
var found = $.inArray(element.className, popupElements) > -1;
if(!found){
Expand Down Expand Up @@ -71,10 +71,10 @@ function check_input() {
if(input == secret) {
//the code used to reveal mario and the world is then put here
chrome.runtime.sendMessage({action: "boysen"}, function(response) {
console.log(response.farewell);
//console.log(response.farewell);
});
}
console.log(input);
//console.log(input);
}

/*
Expand Down Expand Up @@ -172,7 +172,7 @@ function copyFromSignal(){
var string = $("#boxClassBody").html();
string = string.replace(/<br>/g,"\n");
signalCopy(string);
console.log("copySent");
//console.log("copySent");
}

function resetCopy(){
Expand All @@ -181,7 +181,7 @@ function resetCopy(){

function signalCopy(tobeCopied){
chrome.runtime.sendMessage({action: "copy",string:tobeCopied}, function(response) {
console.log(response.farewell);
//console.log(response.farewell);
});
$("#copy_style").html("(copied!)");
setTimeout(function(){resetCopy();}, 3000);
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"name": "boysenberry",
"description": "quick and dirty dev tools",
"version": "1.0",
"version": "1.1",

"background":{
"page":"background.html",
Expand Down

0 comments on commit c155f3f

Please sign in to comment.