Saturday, January 5, 2019

(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

No comments:

Post a Comment

You can add Images, Colored Text and more to your comment.
See instructions at http://macrolayer.blogspot.com..