How to Disable Copying Text On Blogger Blogs?

Steps to implement to Blogger (Disable Copying Text):

Text selection Lock by DiscountJugaad

 1. Go to Dashboard Select the blog where you would like to implement the code
2. Go to Layout Add a Gadget > Select “HTML/JavaScript gadget”
3. Paste the following code in the box:
<script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script>
<script type='text/javascript'>if (typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" );} else {document.onmousedown=new Function ("return false" ); document.onmouseup=new Function ("return true" );
}</script><a href="https://discountjugaad.com/" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="49" data-original-width="148" src="https://i.imgur.com/8KGBOmx.jpg" /></a>

4. You are done!!! Check out how it works. Let us know in the comment section. 

Note: The above code can also be placed between <head> & </head>

Cannot modify header information – headers already sent by… WordPress Issue

When running script, I am getting several errors like this:

Warning: Cannot modify header information – headers already sent by (output started at /some/file.php:12) in /some/file.php on line 23

 

Possible solutions

  1. header("Location: $location", true, $status);

    with

    echo "<meta http-equiv='refresh' content='0;url=$location' />";
  2. Most of this trouble comes up because of undesirable whitespace(s) somewhere before the first "<?" and after the last "?>" in a php script. Use Notepad2 or something to edit code and better try to use in-built on-line theme editor in the admin console. Try to find and eliminate all undesidrable whitespaces in every theme’s php file and resave those files.
  3. The long term answer is that all output from your PHP scripts should be buffered in variables. This includes headers and body output. Then at the end of your scripts do any output you need.

    The very quick fix for your problem will be to add

  4.  
    <?php
      ob_start();
    
      // code 
    
     ob_end_flush();
    ?> 

cast_sender.js console error

Recently I have started seeing cast_sender.js console errors in one of the websites.

Issue here was It’s the JavaScript code inside the YouTube iframe polls for the extensions it could interoperate with in case they were installed (likely to determine if the extension is installed).

cast_sender.jschrome-extension://boadgeojelhgndaghl…
cast_sender.jschrome-extension://dliochdbjfkdbacpmh…
cast_sender.jschrome-extension://enhhojjnijigcajfph…
cast_sender.jschrome-extension://fmfcbgogabcbclcofg…
cast_sender.jschrome-extension://pkedcjkdefgpdelpbc…
cast_sender.jschrome-extension://fjhoaacokmgbjemofl…

A simple solution – To stop seeing those cast_sender.js errors, edit the youtube link in the iframe src and change embedto v

E.g. If you have a link ” https://www.youtube.com/embed/pw6wBn1pgA8 ” Just replace to look like ” https://www.youtube.com/v/pw6wBn1pgA8 “

How to Remove line breaks _x000D_ from Excel data sheet

1 – Select the cell(s) that contain line breaks you wish to remove

2 – Press CTRL + H on your keyboard. This opens up the “Find and Replace” dialog box.

3 – In the field “Find what” where you would normally type the word/text you want to replace, you need to enter the following : ALT + 010
>>> Keep the ALT key pressed, while typing 010 using the number keypad of your keyboard (problem if you’re working on a laptop, keyboard doesn’t include number pad). You should then see a dot appear briefly then disappear in the field “Find what”.

4 – In the field “Replace with”, just enter a space (a normal blank space using your keyboard space bar)

5 – Hit “Replace All”, and all your line breaks should be gone.