firebug

JavaScript Code Inside <script> Tag

…衆ロ難τιáo~ 提交于 2019-12-01 17:55:13
Apparently a JSON object can be passed inside a linked script. I'm trying to figure out exactly how this works (or if it does): <script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"> { overrideConsole: false, startInNewWindow: true, startOpened: true, enableTrace: true } </script> I noticed it here in the firebug lite documentation: http://getfirebug.com/firebuglite#ScriptJSONOptions The content is not executed because the element has a src attribute. It's not strictly legal as is. The HTML5 spec says: If there is a src attribute, the element must be either empty or

Viewing page headers in Firebug

微笑、不失礼 提交于 2019-12-01 15:13:18
How can I view the page headers sent by the current page I'm viewing in Firebug ? Yes, so long as Firebug is open on the net or console tabs when loading the page. They will appear in either one of these tabs (though you may need to reload if they were not enabled/open). 来源: https://stackoverflow.com/questions/4156079/viewing-page-headers-in-firebug

Prevent user from editing checkbox value with something like FireBug?

a 夏天 提交于 2019-12-01 14:26:15
I have an admin page that lists a bunch of records and each record has a checkbox next to it to set it to an "active" status. Each checkbox has a value on it that is tied to the ID of the record in the database. If somebody used FireBug they could easily change the checkbox's value to a different number thus effecting the wrong record in the database. I'm not extremely worried about this happening because its just an admin page that will just have one user and I'm sure he doesn't know anything about FireBug.. but was just curious incase I run into this problem in the future on a more public

Using selenium with python to extract javascript-generated HTML? Firebug?

浪尽此生 提交于 2019-12-01 12:45:08
问题 Python noobie here. What I have is a data harvesting problem. I'm on this website, and when I inspect the element that I want with Firebug, it shows the source containing the information I need. However the regular source code (without Firebug) doesn't give me this info. This means I also can't get the data with the normal selenium HTML grabbing, either. I'm wondering if there is a way that selenium can grab this data like Firebug does -- I'm guessing this is HTML that is generated after the

Link disappears in a browser

寵の児 提交于 2019-12-01 12:32:14
Could you please help with this one: <a target="_top" href="http://reversevincheck.com/?hop=asdas&price_type=&tid=asda"> <img src="http://reversevincheck.com/view/img/banners/160x600.gif"> </a> When i put this link on a page it disappears! Here is what fire bud shows: I i think that something wrong with the image. But what? In Firebug, most of the time, the greyed out element means something is setting it to display: none or visibility: hidden . I couldn't reproduce the issue locally. Because the word "banner" is in your image path, and the random string of text as a class name, make sure you

Prevent user from editing checkbox value with something like FireBug?

谁说胖子不能爱 提交于 2019-12-01 12:25:09
问题 I have an admin page that lists a bunch of records and each record has a checkbox next to it to set it to an "active" status. Each checkbox has a value on it that is tied to the ID of the record in the database. If somebody used FireBug they could easily change the checkbox's value to a different number thus effecting the wrong record in the database. I'm not extremely worried about this happening because its just an admin page that will just have one user and I'm sure he doesn't know

javascript: call an embedded function from a GM script

末鹿安然 提交于 2019-12-01 11:37:40
On a webpage there's <script> function fn982734() { // some code } </script> In my Greasemonkey script, I have the following code: var fn = fields[5].getElementsByTagName("a")[0].getAttribute('onclick').substr(7,11); console.log(fn); // outputs fn982734 to the firebug console window[fn](); This code does not work, and spawns an error in the error console: window[fn] is not a function. However, typing directly into firebug: var fn = 'fn982734'; window[fn](); works perfectly. What's going on? The Greasemonkey script is inside a sandbox and Firebug is not. See: "Avoid Common Pitfalls" (in

No automated tbody with createElement/appendChild?

时光总嘲笑我的痴心妄想 提交于 2019-12-01 10:32:51
Creating a table without tbody using javascript createElement/appendChild will not add tbody in Firebug but using innerHTML will do it. Why? Should we add the tbody manually? When using DOM creation methods, it must assume that you want the structure the way you created it. If you want to ensure the same structure in different browsers, then yes you should always add it manually, even when JavaScript is parsing the HTML. Don't rely on the browser to insert it for you, because browsers may not behave the same in that respect. Here's an example you can run in Firefox. It starts off with this

javascript: call an embedded function from a GM script

青春壹個敷衍的年華 提交于 2019-12-01 09:15:23
问题 On a webpage there's <script> function fn982734() { // some code } </script> In my Greasemonkey script, I have the following code: var fn = fields[5].getElementsByTagName("a")[0].getAttribute('onclick').substr(7,11); console.log(fn); // outputs fn982734 to the firebug console window[fn](); This code does not work, and spawns an error in the error console: window[fn] is not a function. However, typing directly into firebug: var fn = 'fn982734'; window[fn](); works perfectly. What's going on?

Why doesn't FirePath work anymore since Firefox 51.0.1?

喜欢而已 提交于 2019-12-01 09:13:48
I have Firefox version 51.0.1 and Firebug version 2.0.18 (though it just says "deactivated"). I have been installing the latest FirePath over and over but I don't see it appearing when I click the Firebug icon. They both are enabled in my extensions. I saw it a few days ago but I had to reinstall Firefox yesterday for some reason, and both Firebug and FirePath were gone and now giving me problems. Can someone help? NarendraR Please see the answer in this question. definitely it will work- Firebug toolbar button is always shown deactivated since Firefox 51.0.1 Sebastian Zartner Firebug