Skip to content

Commit

Permalink
Removed Lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
vishvanath45 committed Jan 31, 2017
1 parent 40530d1 commit e228779
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions popup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

"use strict";
// Styling content

// Place suggestion in query box

function suggestionAsValue() {
var sLabel;
sLabel = document.getElementById("suggest-label");
Expand Down Expand Up @@ -43,7 +44,17 @@ function keyboardShortCutListener(e) {
}
}
}

/* eslint-disable */
function trim(s, mask) {
while (~mask.indexOf(s[0])) {
s = s.slice(1);
}
while (~mask.indexOf(s[s.length - 1])) {
s = s.slice(0, -1);
}
return s;
}
/* eslint-enable */
function register(event) {
var set1;
var set2;
Expand Down Expand Up @@ -98,16 +109,17 @@ function register(event) {
query = querySplit[0];
formats = formats + "|" + suggestedFormat;
}
formats = trim(formats, "|");

/* eslint-disable */
window.open("http://www.google.com/search?q="+query+" -"+uuid+" -inurl:(htm|html|php|pls|txt) intitle:index.of \"last modified\" ("+formats+")");

if(document.getElementById("GDrive").checked === true)
{
if((document.getElementById("video").checked === true)||(document.getElementById("music").checked === true)){
window.open("https://www.google.co.in/#q="+query+" site:drive.google.com ("+formats+")");
}
else{
window.open("https://www.google.co.in/#q="+query+" site:docs.google.com ("+formats+")");
window.open("http://www.google.com/search?q=" + query + " - " + uuid + " -inurl:(htm|html|php|pls|txt) intitle:index.of \"last modified\" (" + formats + ")");
if (check4) {

if ((document.getElementById("video").checked === true) || (document.getElementById("music").checked === true)) {
window.open("https://www.google.co.in/#q=" + query + " site:drive.google.com (" + formats + ")");

} else {
window.open("https://www.google.co.in/#q=" + query + " site:docs.google.com (" + formats + ")");
}
}
/* eslint-enable */
Expand Down

0 comments on commit e228779

Please sign in to comment.