google-chrome-devtools

Is it possible to view multiple Chrome devtools panels at once?

流过昼夜 提交于 2019-11-30 09:01:40
Is there a way to view multiple Chrome devtools panels at the same time? A split window, like this mockup, would be nice: Or in separate windows. It would be extremely useful to be able to view the Sources panel and Network panel at the same time, to see exactly when network requests are fired while stepping through code. The console can be pulled up while inside any other panel by clicking or pressing esc , so why not the other panels? I haven't found much by searching, but maybe this is possible with a devtools extension . Does this exist already? If not, is it possible? I find this

How to read the Clipboard text in google chrome extension

只愿长相守 提交于 2019-11-30 08:54:07
问题 I am trying to read clipboard text in Google chrome extension. As of now I have tried with tis code and it is returning me undefined. Please help me on this. In background.html my code is chrome.extension.onRequest.addListener(function(request, sender, sendResponse) { if (request.method == "getClipData") sendResponse({data: document.execCommand('paste')}); else sendResponse({}); // snub them. }); In My content script my code is chrome.extension.sendRequest({method: "getClipData"}, function

“Un-redefining” Google Chrome's console Object

余生长醉 提交于 2019-11-30 08:45:43
I'm dealing with a system where the following Javascript code (which is out of my control) is being executed early in the page if (!("console" in window) || !("firebug" in console)) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; window.console = {}; for (var i = 0; i < names.length; ++i) window.console[names[i]] = function() {} } This code appears to be used to create a mock console object to prevent javascript errors in environments without a javascript console. This is

jQuery in Chrome Console (8.0.552.237)

淺唱寂寞╮ 提交于 2019-11-30 08:30:29
It appears that jQuery selectors are not functioning in the Chrome Console. Any type of selector returns "null". The scripts do properly run the javascript, however. Has anyone else noticed this change or know of a fix. Thanks. Matt Ball I uncovered the cause of this in my own question . The console injects its own function (just a shorthand) for document.getElementById() , aliased to $ , which shadows jQuery's $ . Easy way to check this: when you're at a breakpoint, and jQuery seems to be broken, compare the following in the console: jQuery $ window.$ The first and last will be jQuery proper,

Reducing scroll jank when using overflow-y: scroll;

别说谁变了你拦得住时间么 提交于 2019-11-30 08:03:02
I have a 2 column layout, the right hand column is a scrollable result lists with a max of 200 item results (basically just a ul with overflow-y: scroll; set) What I am finding is that the right hand column is causing some jank (which is especially noticeable on low end hardware) when you scroll. In the chrome timeline i can see some major "Update Layer tree" while I scroll the column. Is there any way I can figure out why "Update Layer tree" is so lengthy and what CSS properties are affecting speed the most? When I click on it - just gives me info on how long it ran for and nothing else. I

How can I enable Source Maps for Sass in rails 4?

≯℡__Kan透↙ 提交于 2019-11-30 07:54:43
问题 According to this issue https://github.com/rails/sass-rails/pull/192 sass-rails hasn't support for Sass 3.3 yet. But it seems that sass-rails-source-maps has been depending on Sass 3.3 since the very beginning. So is there a way to use this gem with sass-rails ? According to the readme with sass-rails-source-maps , Chrome dropped support of the Source Maps files from Sass older than version 3.3. Does that mean there is no way of using Sass Source Maps with Chrome devtools now? 回答1: There is a

How can a chrome extension add a floating bar at the bottom of pages?

六眼飞鱼酱① 提交于 2019-11-30 07:43:46
I am creating a chrome extension that needs to inject a floating element (i.e position:fixed ) at the bottom of pages . My requirements are: I need to access elements inside it from a content script. This is because I attach events to buttons so the user can perform actions on the current tab from the floating bar. I want it's styles to remain as independent from styles of the current page. So far I have tryed three solutions and came up with nothing. content script injecting a fixed html element . The problem with this solution is that the style of the page and the style of my element would

Chrome Devtools Dedicated Node.js Inspector not stopping at breakpoints

家住魔仙堡 提交于 2019-11-30 07:25:09
There have been a couple of older posts regarding this issue, but date from questions asked in 2013 and 2014 and the answers in there have not helped my case. I have the debugger keyword placed in multiple places in my file, and have even added manual breakpoints in the inspector UI. Still, executing the file does not stop at any breakpoints. I am using node 9.2.0 and chrome 64.0.3282.167. Here is a picture of how my devtools appears. This is a problem that has been extremely annoying to me since 10.13 went to LTS and I upgraded from 8 to 10. I was unable to find anything about this issue

Multiple URLs copy in Sources/Network tab

回眸只為那壹抹淺笑 提交于 2019-11-30 07:18:25
Is it possible to extract multiple resources' URLs in Sources or Network tab of Chrome Dev Tools? When I want to get URL of a single resource, I can do it with context menu function Copy link address I can switch to this resource from Network to Sources tab and vice versa, but what if I have a need to get URLs of multiple resources at once? It is very cumbersome to copy them manually if resultset consists of 200-300 resources. What I've tried so far: To copy the whole folder from a sources tab, but from this answer I found out it is not possible for now. To use $(selector) as specified in the

How do I get the screen size to show when Chrome console is open?

我只是一个虾纸丫 提交于 2019-11-30 06:50:04
I just upgraded to the latest version of Chrome (49.0.2623.87). I'm noticing a slight feature missing. If I was inspecting a page with the console open and I resized the browser, in the upper-right hand corner Chrome used to have a small indicator of what the browser viewport size was. That's now gone. How do I get it back? Known bug, already fixed: https://bugs.chromium.org/p/chromium/issues/detail?id=582421 It should land in M50. If you need it sooner then it is currently in Canary (side-by-side with standard Chromes) or you can use the Dev channel of Chrome. Temporary solution: 1- Right