Why can’t I save CSS changes in Firebug? [closed]

Been wondering the same for quite some time now, just gut-wrenching when your in-the-moment-freestyle-css’ing with firebug gets blown to bits by an accidental reload or whatnot…. For my intents and purposes, I’ve finally found the tool…. : FireDiff. It gives you a new tab, probably some weird David Bowie reference, called “changes”; which not only … Read more

Breakpoint on property change

If you don’t mind messing around with the source, you could redefine the property with an accessor. // original object var obj = { someProp: 10 }; // save in another property obj._someProp = obj.someProp; // overwrite with accessor Object.defineProperty(obj, ‘someProp’, { get: function () { return obj._someProp; }, set: function (value) { debugger; // … Read more

Find out whether Chrome console is open

requestAnimationFrame (Late 2019) Leaving these previous answers here for historical context. Currently Muhammad Umer’s approach works on Chrome 78, with the added advantage of detecting both close and open events. function toString (2019) Credit to Overcl9ck’s comment on this answer. Replacing the regex /./ with an empty function object still works. var devtools = function() … Read more

What is console.log?

It’s not a jQuery feature but a feature for debugging purposes. You can for instance log something to the console when something happens. For instance: $(‘#someButton’).click(function() { console.log(‘#someButton was clicked’); // do something }); You’d then see #someButton was clicked in Firebug’s “Console” tab (or another tool’s console — e.g. Chrome’s Web Inspector) when you … Read more

How can I inspect disappearing element in a browser?

(This answer only applies to Chrome Developer Tools. See update below.) Find an element that contains the disappearing element. Right click on the element and apply “Break on… > Subtree Modifications.” This will throw a debugger pause before the element disappears, which will allow you to interact with the element in a paused state. Update … Read more

Form inside a table

A form is not allowed to be a child element of a table, tbody or tr. Attempting to put one there will tend to cause the browser to move the form to it appears after the table (while leaving its contents — table rows, table cells, inputs, etc — behind). You can have an entire … Read more

Tools to selectively Copy HTML+CSS+JS From A Specific Element of DOM [closed]

SnappySnippet I finally found some time to create this tool. You can install SnappySnippet from Github. It allows easy HTML+CSS extraction from the specified (last inspected) DOM node. Additionally, you can send your code straight to CodePen or JSFiddle. Enjoy! Other features cleans up HTML (removing unnecessary attributes, fixing indentation) optimizes CSS to make it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)