firebug - Disable one bit of Javascript in a page -
not actually, programming, more programming tools (firebug, chrome developer tool). understand faq ok here. stumbling on legacy redirect in 1 of our html pages, , cannot rid of it, neither chrome developer tools, nor firebug. this bit of inline code, inserted in html file body
:
<script type=text/javascript><!-- redirect(); function redirect() { location.href = 'https://another/page/'; } // --></script>
unfortunately, don't have access page's source. want avoid execution of snippet, while keeping rest of javascript active. goal change redirection url, accessing admin controls need javascript work! (i know put ourselves in big mess...)
i tried use of chrome developer tools/firebug me out of this, may lacking experience them. tried: set breakpoint firebug on location.href = ...
line. unfortunately, both firebug , chrome developer tool keeps javascript execution frozen during breakpoint. there's afak no option cancel location.href =
execution while retaining other javascript code active, patch code, or use admin panels meanwhile. investigated greasemonkey's behavior, don't see obvious way make work me here.
try overriding method in html page , see if works
function redirect() { location.href = 'https://another/page/'; }
with function redirect() {
}
hope helped
Comments
Post a Comment