developer-tools

Javascript listen for style changes made in developer-tools

混江龙づ霸主 提交于 2019-12-06 01:14:55
Is there a way to detect style changes made only in the developer-tools (inspect element)? I want to allow to save them if the user is logged in as admin. You can access the styles of a HTMLElement using element.style in JavaScript. So you could probably save the styles on page load, check them again when the user initiates a save and compare -- the difference would be the users changes. As for detecting them as soon as they happen, you can use MutationObserver to get notified of attribute changes on the page. This works for when you add styles to a specific element in the Devtools, but not

Google developer screenshot (graphic assets) error image not valid

≯℡__Kan透↙ 提交于 2019-12-05 23:05:53
Trying to upload any graphics such as screenshot, icon, Feature graphic and I keep having the same error from from Google while my picture have the right spec. message is "Upload Error" "You need to check that your screenshot image is valid valid" or "You need to fix your feature graphic is valid" Anyone has the same error or any clue? I've even used another graphic from another app published and it still dont want it anymore. I've also deleted my app and create a new one in the Dev account. Same issue. I'm desperate. I have the same error. Try with another browser. Firefox works for me.

Unable to view content script references in the developer tools window

回眸只為那壹抹淺笑 提交于 2019-12-05 09:08:30
When I view my extension with the developer tools, I only see the generated background file, background.js; my content script doesn't appear under the content scripts tab. Any ideas why? The relevant part of the manifest looks like this: "content_scripts": [{ "run_at": "document_end", "js": ["postMsg.js"], "matches": ["https://groups.google.com/forum/*"] }], postMsg.js gets injected into the page, but never appears in the developer tool window, so I'm unable to debug it. Brock Adams As long as you are on a page that matches the "Match patterns and globs" from your manifest, you will see the

Google Chrome Developer Tools keyboard shortcut customization on Mac

倖福魔咒の 提交于 2019-12-05 04:11:43
I use Firefox Firebug to debug but would switch to Google chrome if I could customize the keyboard shortcuts. I need to activate and hide the 'developer tools > inspect Element', 1000 times a day. Trying to type CMD + SHIFT + C with one hand, it's a nightmare. I navigate with the mouse The extension 'Shortcut Manager' has limited built in options. The ability to add Javascripts doesn't help me, where would you start on a task like this? Because 'inspect Element' has no presence in the Mac menu, I can't even target it that way. Any ideas? There's a simple way to do this without any add-ons. To

Chrome Developer Tools / debugger: “pretty print” does not work

女生的网名这么多〃 提交于 2019-12-04 23:02:27
The "pretty print" button, located in the lower left corner of the Chrome Developer Tools window, is supposed to make minified code readable. However, when I click it, nothing happens. I tried both single and double-clicks. This happes on Chrome 32 on Windows. How do I make the pretty-print button work? As I found out the hard way (by trial and error) the "pretty print" button is only functional when the console is visible. That means it does not work here: But it does work here (console visible): 来源: https://stackoverflow.com/questions/21444641/chrome-developer-tools-debugger-pretty-print

How do you determine what is overriding your style? [duplicate]

跟風遠走 提交于 2019-12-04 22:21:15
This question already has answers here : Chrome Developer Tools: How to find out what is overriding a CSS rule? (3 answers) Closed 3 years ago . When fiddling around with styles of sample code, I find the code has styles that will override my style because they will use a higher priority reference (e.g.: .div .class > .class ). I will encounter situations like this: How do I find out what style is overriding my style? I want to avoid using !important because eventually I'll end up in the same situation. EDIT: I'm not asking why this is happening. I already know about priority, hence why I

Freeze keyframe animation for debugging

梦想的初衷 提交于 2019-12-04 10:22:31
Is it possible to freeze a CSS keyframe animation with developer tools to inspect it? I need to identify animated elements in a keyframe animation. Here is a playground : body{background:#000;} .circle{ position:relative; width:10px;padding-bottom:50px; margin:100px auto; } .circle div { position:absolute; top:0; left:0; width:100%; height:100%; -webkit-animation: rotate 1.5s infinite; -moz-animation: rotate 1.5s infinite; -o-animation: rotate 1.5s infinite; animation: rotate 1.5s infinite; -webkit-animation-timing-function: linear; -moz-animation-timing-function: linear; -o-animation-timing

How can I override/extend ReferenceError in Chrome's JavaScript?

三世轮回 提交于 2019-12-04 08:28:24
问题 To make debugging easier, I'm capturing all of the console logs in Chrome so that users who submit a feedback entry will also submit all of the logs to our server. When someone encounters a problem in production, I can first and foremost get them back to work so that I can then sit down and more thoroughly go through all of the logs to determine the root cause of whatever issue the user encountered in production. The technique I use to capture the logs involves overriding console.log so that

Silverlight disappears when opening chrome developer tools

纵然是瞬间 提交于 2019-12-04 04:24:10
I recently upgraded Chrome (version 38.0.2125.104) and now any time I open developer tools on a page with a silverlight object, silverlight disappears. It doesn't crash, it is just gone. As long as I don't open developer tools it runs fine, but as soon as I open developer tools it's gone. Am I doing something wrong? Is this a chrome issue or an issue with silverlight? 41.0.2272.118m not be a problem with the Google Chrome version. the new beta version 42.0.2311.90 m or ask for it quits https://www.google.com/intl/tr/chrome/browser/beta.html exchange does not function normally if the beta

Firefox developer tools adding a new rule?

时间秒杀一切 提交于 2019-12-04 03:38:21
问题 I decided to try out the built in Firefox Developer Tools. Seems to be nice, but... I can't find out how to add a new rule to the CSS from Inspector/Rules. By that I mean ".my-new-rule" not just the "element" rule that is open by default. FINAL EDIT: This is now possible with the latest Firefox update. 回答1: Update: As of FF 33.00 it is now possible to add new CSS rules using the inspector! It is not possible to use the inspector to create new CSS rules with out a browser add-on (see comment