Saturday, January 5, 2019

(All Devices) How to Fix Don't Track My Views on Blogger

Make a button on your blog. Push it on the device you use! 


Works on all devices including Android, iPhone, iPad, tablet, and phones. No developer console required. No bookmarklets required. No Javascript in address bar required.


1. Create a post on your blog.
2. Switch to HTML mode in the editor.
3. Paste this code:
<div align="center">
<button onclick="mybutton()">Don't track my views on this blog</button>
<script type="text/javascript">
//<![CDATA[
function mybutton() {
var btn = document.createElement("BUTTON");
var date = new Date();
date.setTime(date.getTime()+(999*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
document.cookie = "_ns"+"="+2+expires+"; path=/";
}//]]></script></div>

4. Publish the post.
5. View the post on each device you use and click the button. Done!



Note:
  • You have to put the button on YOUR blog. Clicking my button just sets the cookie for MY blog. Sites only have permission to set cookies on their own pages!
  • Deleting cookies from your browser history will undo the work!

Reference:


Run JavaScript  on a Blogger post with a push of a button
JavaScript code to write Blogger cookie

Don't track my views

(Google Chrome) How to fix don't track my page views on blogger (Android friendly, no root!)

GO SEE THIS EASIER SOLUTION: (WORKS ON EVERY DEVICE!) https://alchemytheory.blogspot.com/2019/01/all-devices-how-to-fix-dont-track-my.html

Easy instructions. Nothing to download. No computer skills required.

For Google Chrome:


1. Copy this code:

function%20createCookie(name,value,days)%7Bif(days)%7Bvar%20date=new%20Date();date.setTime(date.getTime()+(days*24*60*60*1000));var%20expires=%22;%20expires=%22+date.toGMTString();%7Delse%20var%20expires=%22%22;document.cookie=name+%22=%22+value+expires+%22;%20path=/%22;%7DcreateCookie(%22_ns%22,%222%22,999);

2. Open Google Chrome to the blog's main page.


3. Clear everything in your address bar.

4. Type "javascript:" without the quotes into the address bar. (You have to manually type it in, because it doesn't paste for some reason.) Don't forget the colon!


5. Paste the above code and press enter. 


6. That's it! Nothing appears to happen, but you did it. You should still be looking at the blog main page with the same URL. If your browser goes anywhere else you done messed up.

Visit a page on your blog and check. Your stats will stay the same. You can use this to not be tracked on other people's bloggers too!

Note: If you clear your browser's history and delete saved cookies, you will lose these settings!

Explanation:

  • "javascript:" tells your browser to run a JavaScript code. 

    (You have to type javascript and the colon manually in the address bar, because copy pasting leaves it out for security reasons.)
  • The code is a bookmarklet that creates a cookie on your device that tells blogger not to track your views.


GO SEE THIS EASIER SOLUTION: (WORKS ON EVERY DEVICE!) https://alchemytheory.blogspot.com/2019/01/all-devices-how-to-fix-dont-track-my.html

Other Devices (Not so easy)


If you're using other browsers on a mobile device, tough luck. Current browsers block JavaScript from running both in the address bar and bookmarks. 


You do have an option of rooting your phone and then installing a SQL database editor.
But rooting your phone will be a lot(!) of work and will involve erasing all your data.  

Find the database where the cookies are stored by your browser, and then correct the cookie that blogger creates. Similar to this method: 


On a PC/Mac you can run Javascript from a developer console.
(See Reference:
stramaxon)

 function createCookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
    }
     
    createCookie("_ns", "2", 999);

For PC Mozilla Firefox Browsers:


Firefox blocks JavaScript commands from being run from the address bar by default. You can change this setting by entering into the address bar:

about:config?filter=browser.urlbar.filter.javascript

Click through the warning page. Then double click the setting to set it to false.



Then steps 1-6 will work. (Note: In Firefox, the copied JavaScript code will stay in your address bar after you press Enter. It won't go back to your blog page URL. That's normal.)

You can also create a bookmark, then change the URL of the bookmark to the javascript: code from step 1. Then click on the bookmark. 


Reference:


JavaScript code to write Blogger cookie

JavaScript can be run on Android browser as bookmarlet

Convert JavaScript to bookmarklet


Firefox allow Javascript in address bar


Safari run Javascript

Flute

at Seven Falls in Tuscon AZ




Seven Falls Hike in Tucson, AZ



Tuesday, January 1, 2019

Flute


Original Music

Download

New Year

Banner University Medical Center
Tucson, AZ


May your goals come true and happiness follow.

 
Auld Lang Syne

Download


Auld Lang Syne (English)

Download


A Long December by Counting Crows

Download