How to re-enable right click so that I can inspect HTML elements in Chrome?

前端 未结 18 1132
囚心锁ツ
囚心锁ツ 2021-01-29 20:55

I am looking at a web page which has overwritten the right-click button so to display its own popup HTML element.

This prevents me from using Chrome Developer Tools to

18条回答
  •  孤独总比滥情好
    2021-01-29 21:04

    Just Press F12

    Go to Sources

    There you will find Enable right click. Click on it.

    Under this you will find web_accessible_resource.

    Open it in this you will find index.js.

    Press Ctrl + F and search for disabelRightClick. There you will find

            var disableRightClick = false;  
    

    this line. Replace this line with

            var disableRightClick = true;
    

    Just press Ctrl + s

    !! Done. Now your right click is enabled !!

提交回复
热议问题