GithubHelp home page GithubHelp logo

tarvk / chromeconsole Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 6.3 MB

A recreation of the chrome console interface to be embedded on web pages

Home Page: https://tarvk.github.io/chromeConsole/About.html

License: MIT License

CSS 1.08% JavaScript 90.13% HTML 8.73% Haxe 0.01% ABAP 0.01% ActionScript 0.01% Ada 0.01% Assembly 0.01% AutoHotkey 0.01% Batchfile 0.01% Bro 0.01% C++ 0.01% Cirru 0.01% Clojure 0.01% COBOL 0.01% CoffeeScript 0.01% ColdFusion 0.01% C# 0.01% Csound Document 0.01% Csound 0.01%

chromeconsole's People

Contributors

sancarn avatar tarvk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sancarn

chromeconsole's Issues

Input element isn't focussed when clicking in the history element

It is very useful to be able to select information out of the history, however an issue can occur where, if you don't select anything you want to be able to immediately start typing again.

Ultimately, the input element should only ever be unfocussed if the user hasn't selected a portion of text.

chromeConsole renders functions incorrectly.

Currently the following function:

function(a,b){
  console.log(a+b)
}

Would be rendered as follows:

> f()

Chrome's actual console renders it as the following:

ƒ (a,b){
  console.log(a+b)
}

I do like how chromeConsole presents the object drop down. However it really should also contain the arguments and body as well.

This should be realtively easy to implement with the toString() method returning:

"function(a,b){
  console.log(a+b)
}"

Replace the 1st function with a special colored ƒ and we're good to go!

Fix command duplication in memory

If you run the same command over and over in memory then the same command is also added to memory each time. E.G.

console.log("hello world")
console.log("a")
console.log("a")
console.log("a")

Running these commands in sequence (not all together) will mean that you have to press the up key 4 times to get back to console.log("hello world").

Chrome's console actually only adds a command to the memory buffer if it isn't identical to the last element in memory. E.G. The memory for:

console.log("a")
console.log("b")
console.log("a")
console.log("a")
console.log("a")

Will look like this:

console.log("a")
console.log("b")
console.log("a")

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.