Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Can i make the object browser to remember deleted elements?

  • 1 답장
  • 1 이 문제를 만남
  • 11 보기
  • 최종 답변자: cor-el

more options

Hi everyone, i have a website where i have to delete a certain element in order for the website to display correctly. I am doing this by right-clicking on the element, selecting "Inspect Element" and then i simply click delete node and close the object browser. Since i visit that website regularly i wonder if there is any way to make the object browser to remember that i want that element to be deleted on every visit to this website? Or do i need an Addon for that?

Thank you in advance and best regards!

Hi everyone, i have a website where i have to delete a certain element in order for the website to display correctly. I am doing this by right-clicking on the element, selecting "Inspect Element" and then i simply click delete node and close the object browser. Since i visit that website regularly i wonder if there is any way to make the object browser to remember that i want that element to be deleted on every visit to this website? Or do i need an Addon for that? Thank you in advance and best regards!

모든 댓글 (1)

more options

You can possibly use code in userContent.css to hide specific content. You can find the selector with the Inspector and use display:none!important; to hide this element. Use @-moz-document domain() to make the rule work only on a specific domain.

You can also use a JavaScript bookmarklet on the Bookmarks Toolbar to apply style rules.

javascript:(function(){
var S='<rules>',SS;
SS=document.createElement('style');
SS.setAttribute('type','text/css');
SS.textContent=S;
document.querySelector('head').appendChild(SS);
})()

Add code to the userContent.css file.


@-moz-document domain(xxx.com) {
 selector { display:none!important; }
}

See also:

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

  • toolkit.legacyUserProfileCustomizations.stylesheets = true

See: