In Google Chrome, how can I get rid of the big gray box that displays “The server refused the...












3















I got sick of blocking sites such as facebook.com and facebook.net per browser, and decided to add them to my /etc/hosts file so the sites would be blocked entirely:



0.0.0.0 facebook.com facebook.net www.facebook.com


That seemed to do the trick, but now when I load pages that attempt to include Facebook "Like" buttons, I get a big gray box that says The server refused the connection. Seems like a pretty ugly way to handle such a thing, being that the gray box obscures more than 75% of the page sometimes.



Is there a way I can keep blocking requests but eliminate this usability destroyer that is the big gray box?










share|improve this question























  • It looks like sometimes I'm able to dismiss the gray box by clicking on it, but that doesn't always work.

    – hourback
    Apr 11 '14 at 15:48











  • Actually, looking at the JavaScript snippet that tries to call Facebook, it looks like sometimes what happens is that the code tries to resize an element, and then eventually times out, halting the script and causing the gray box to disappear.

    – hourback
    Jun 4 '14 at 17:08






  • 1





    This is a clunky method, but you could set up a web server on your computer with a blank index.html as the home page and redirect traffic in your hosts file to 127.0.0.1.

    – DavidB
    Dec 14 '15 at 21:12
















3















I got sick of blocking sites such as facebook.com and facebook.net per browser, and decided to add them to my /etc/hosts file so the sites would be blocked entirely:



0.0.0.0 facebook.com facebook.net www.facebook.com


That seemed to do the trick, but now when I load pages that attempt to include Facebook "Like" buttons, I get a big gray box that says The server refused the connection. Seems like a pretty ugly way to handle such a thing, being that the gray box obscures more than 75% of the page sometimes.



Is there a way I can keep blocking requests but eliminate this usability destroyer that is the big gray box?










share|improve this question























  • It looks like sometimes I'm able to dismiss the gray box by clicking on it, but that doesn't always work.

    – hourback
    Apr 11 '14 at 15:48











  • Actually, looking at the JavaScript snippet that tries to call Facebook, it looks like sometimes what happens is that the code tries to resize an element, and then eventually times out, halting the script and causing the gray box to disappear.

    – hourback
    Jun 4 '14 at 17:08






  • 1





    This is a clunky method, but you could set up a web server on your computer with a blank index.html as the home page and redirect traffic in your hosts file to 127.0.0.1.

    – DavidB
    Dec 14 '15 at 21:12














3












3








3


1






I got sick of blocking sites such as facebook.com and facebook.net per browser, and decided to add them to my /etc/hosts file so the sites would be blocked entirely:



0.0.0.0 facebook.com facebook.net www.facebook.com


That seemed to do the trick, but now when I load pages that attempt to include Facebook "Like" buttons, I get a big gray box that says The server refused the connection. Seems like a pretty ugly way to handle such a thing, being that the gray box obscures more than 75% of the page sometimes.



Is there a way I can keep blocking requests but eliminate this usability destroyer that is the big gray box?










share|improve this question














I got sick of blocking sites such as facebook.com and facebook.net per browser, and decided to add them to my /etc/hosts file so the sites would be blocked entirely:



0.0.0.0 facebook.com facebook.net www.facebook.com


That seemed to do the trick, but now when I load pages that attempt to include Facebook "Like" buttons, I get a big gray box that says The server refused the connection. Seems like a pretty ugly way to handle such a thing, being that the gray box obscures more than 75% of the page sometimes.



Is there a way I can keep blocking requests but eliminate this usability destroyer that is the big gray box?







google-chrome javascript facebook






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 8 '14 at 20:28









hourbackhourback

157215




157215













  • It looks like sometimes I'm able to dismiss the gray box by clicking on it, but that doesn't always work.

    – hourback
    Apr 11 '14 at 15:48











  • Actually, looking at the JavaScript snippet that tries to call Facebook, it looks like sometimes what happens is that the code tries to resize an element, and then eventually times out, halting the script and causing the gray box to disappear.

    – hourback
    Jun 4 '14 at 17:08






  • 1





    This is a clunky method, but you could set up a web server on your computer with a blank index.html as the home page and redirect traffic in your hosts file to 127.0.0.1.

    – DavidB
    Dec 14 '15 at 21:12



















  • It looks like sometimes I'm able to dismiss the gray box by clicking on it, but that doesn't always work.

    – hourback
    Apr 11 '14 at 15:48











  • Actually, looking at the JavaScript snippet that tries to call Facebook, it looks like sometimes what happens is that the code tries to resize an element, and then eventually times out, halting the script and causing the gray box to disappear.

    – hourback
    Jun 4 '14 at 17:08






  • 1





    This is a clunky method, but you could set up a web server on your computer with a blank index.html as the home page and redirect traffic in your hosts file to 127.0.0.1.

    – DavidB
    Dec 14 '15 at 21:12

















It looks like sometimes I'm able to dismiss the gray box by clicking on it, but that doesn't always work.

– hourback
Apr 11 '14 at 15:48





It looks like sometimes I'm able to dismiss the gray box by clicking on it, but that doesn't always work.

– hourback
Apr 11 '14 at 15:48













Actually, looking at the JavaScript snippet that tries to call Facebook, it looks like sometimes what happens is that the code tries to resize an element, and then eventually times out, halting the script and causing the gray box to disappear.

– hourback
Jun 4 '14 at 17:08





Actually, looking at the JavaScript snippet that tries to call Facebook, it looks like sometimes what happens is that the code tries to resize an element, and then eventually times out, halting the script and causing the gray box to disappear.

– hourback
Jun 4 '14 at 17:08




1




1





This is a clunky method, but you could set up a web server on your computer with a blank index.html as the home page and redirect traffic in your hosts file to 127.0.0.1.

– DavidB
Dec 14 '15 at 21:12





This is a clunky method, but you could set up a web server on your computer with a blank index.html as the home page and redirect traffic in your hosts file to 127.0.0.1.

– DavidB
Dec 14 '15 at 21:12










1 Answer
1






active

oldest

votes


















0














You could just use an extension like ScriptSafe and enable the Antisocial option to completely block the scripts of anything social. You could also use a program like PeerBlock and add Facebook and its affiliated sites to the HTTP blocklist.



ScriptSafe will prevent Facebook's scripts from loading, which is the lion's share of their undesirable content, without breaking the pages you're viewing. It won't remove any non-script Facebook content, though. Using PeerBlock will stop ALL Facebook related traffic, but I have no guarantees about things being broken by it.






share|improve this answer
























  • Unfortunately, I couldn't find a way for this to work well across browsers. Using a solution like this requires me to update settings for every browser, or at least treat Chrome differently, which is what I was hoping to avoid.

    – hourback
    Aug 5 '14 at 14:57











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f739286%2fin-google-chrome-how-can-i-get-rid-of-the-big-gray-box-that-displays-the-serve%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














You could just use an extension like ScriptSafe and enable the Antisocial option to completely block the scripts of anything social. You could also use a program like PeerBlock and add Facebook and its affiliated sites to the HTTP blocklist.



ScriptSafe will prevent Facebook's scripts from loading, which is the lion's share of their undesirable content, without breaking the pages you're viewing. It won't remove any non-script Facebook content, though. Using PeerBlock will stop ALL Facebook related traffic, but I have no guarantees about things being broken by it.






share|improve this answer
























  • Unfortunately, I couldn't find a way for this to work well across browsers. Using a solution like this requires me to update settings for every browser, or at least treat Chrome differently, which is what I was hoping to avoid.

    – hourback
    Aug 5 '14 at 14:57
















0














You could just use an extension like ScriptSafe and enable the Antisocial option to completely block the scripts of anything social. You could also use a program like PeerBlock and add Facebook and its affiliated sites to the HTTP blocklist.



ScriptSafe will prevent Facebook's scripts from loading, which is the lion's share of their undesirable content, without breaking the pages you're viewing. It won't remove any non-script Facebook content, though. Using PeerBlock will stop ALL Facebook related traffic, but I have no guarantees about things being broken by it.






share|improve this answer
























  • Unfortunately, I couldn't find a way for this to work well across browsers. Using a solution like this requires me to update settings for every browser, or at least treat Chrome differently, which is what I was hoping to avoid.

    – hourback
    Aug 5 '14 at 14:57














0












0








0







You could just use an extension like ScriptSafe and enable the Antisocial option to completely block the scripts of anything social. You could also use a program like PeerBlock and add Facebook and its affiliated sites to the HTTP blocklist.



ScriptSafe will prevent Facebook's scripts from loading, which is the lion's share of their undesirable content, without breaking the pages you're viewing. It won't remove any non-script Facebook content, though. Using PeerBlock will stop ALL Facebook related traffic, but I have no guarantees about things being broken by it.






share|improve this answer













You could just use an extension like ScriptSafe and enable the Antisocial option to completely block the scripts of anything social. You could also use a program like PeerBlock and add Facebook and its affiliated sites to the HTTP blocklist.



ScriptSafe will prevent Facebook's scripts from loading, which is the lion's share of their undesirable content, without breaking the pages you're viewing. It won't remove any non-script Facebook content, though. Using PeerBlock will stop ALL Facebook related traffic, but I have no guarantees about things being broken by it.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 8 '14 at 20:41









TorpedoBenchTorpedoBench

428310




428310













  • Unfortunately, I couldn't find a way for this to work well across browsers. Using a solution like this requires me to update settings for every browser, or at least treat Chrome differently, which is what I was hoping to avoid.

    – hourback
    Aug 5 '14 at 14:57



















  • Unfortunately, I couldn't find a way for this to work well across browsers. Using a solution like this requires me to update settings for every browser, or at least treat Chrome differently, which is what I was hoping to avoid.

    – hourback
    Aug 5 '14 at 14:57

















Unfortunately, I couldn't find a way for this to work well across browsers. Using a solution like this requires me to update settings for every browser, or at least treat Chrome differently, which is what I was hoping to avoid.

– hourback
Aug 5 '14 at 14:57





Unfortunately, I couldn't find a way for this to work well across browsers. Using a solution like this requires me to update settings for every browser, or at least treat Chrome differently, which is what I was hoping to avoid.

– hourback
Aug 5 '14 at 14:57


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f739286%2fin-google-chrome-how-can-i-get-rid-of-the-big-gray-box-that-displays-the-serve%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

Eduardo VII do Reino Unido