Posts

Showing posts with the label google-chrome-devtools

Logic for newlines in the Chrome JavaScript console

Image
Clash Royale CLAN TAG #URR8PPP Logic for newlines in the Chrome JavaScript console I'm building my own application that has a JavaScript backend for user scripting, and am implementing something similar to Chrome's JavaScript console. One thing that's puzzling me is the logic that Chrome uses to decide when the return key triggers the command to be executed, and when it auto continues to a new line. For example if you type function blah() { <return> function blah() { <return> then it continues on to the next line to allow you to continue typing the function, whereas function blah() {] <return> function blah() {] <return> immediately gives a parse error (so it's not as simple as just keeping count of open bracket pairs) Does anyone have any hits (or is anyone familiar enough with the Chromium source who's able to point me to that particular logic in their codebase) so it's not as simple as just keeping count o...

how do i download/extract font from chrome developers tools

Image
Clash Royale CLAN TAG #URR8PPP how do i download/extract font from chrome developers tools I have tired many things but i can't get it even though my computer has it. How can i access this wont files...they are in .woff extension. Double clicking them in chrome inspector just takes to some url. Which doesn't work. Nor this font is installed on my computer. This is in fact first time in my life i have come across woff format and the concept web open format. I want to download the font website is using. I know i can download the images why not wont. 6 Answers 6 Right-click, then "Open link in new tab" edit : you can also double-click, it has the same effect it says forbidden – Muhammad Umer Dec 20 '13 at 22:01 ...