~mfru/wp-blue-infinity-blocker

775af36243afb3a22cae2e75513d7325a81404f6 — Max Frühschütz 2 years ago 6fb1453
replace facebook with meta to comply with WordPress guidelines
2 files changed, 11 insertions(+), 11 deletions(-)

M readme.txt
R wp-block-facebook-in-app-browser-tracking.php => wp-meta-facebook-in-app-browser-tracking.php
M readme.txt => readme.txt +4 -4
@@ 1,4 1,4 @@
=== Block Facebook In-App Browser Tracking === 
=== Block Meta In-App Browser Tracking === 
Contributors: mfru
Donate link: https://ko-fi.com/mfruehschuetz
Tags: block, in-app, tracking


@@ 8,7 8,7 @@ Stable Tag: trunk
License: GPLv3.0 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

A plugin that acts as a measure against Facebooks newest habit of injecting custom tracking JS into in-app browser sessions.
A plugin that acts as a measure against Meta's newest habit of injecting custom tracking JS into in-app browser sessions.

== Description ==



@@ 17,8 17,8 @@ More info on what is going on: https://krausefx.com/blog/ios-privacy-instagram-a

== Installation ==

1. Upload the files to the `/wp-content/plugins/wp-block-facebook-in-app-browser-tracking/` directory or install through WordPress directly.
2. Activate the "Block Facebook In-Browser Tracking" plugin through the 'Plugins' menu in WordPress
1. Upload the files to the `/wp-content/plugins/wp-block-meta-in-app-browser-tracking/` directory or install through WordPress directly.
2. Activate the "Block Meta In-Browser Tracking" plugin through the 'Plugins' menu in WordPress
3. Done, all the measures are applied automatically.

= 1.0 = 

R wp-block-facebook-in-app-browser-tracking.php => wp-meta-facebook-in-app-browser-tracking.php +7 -7
@@ 1,18 1,18 @@
<?php
/*
Plugin Name: Block Facebook In-App Browser Tracking
Plugin URI: https://git.sr.ht/~mfru/wp-block-facebook-in-app-browser-tracking
Description: A plugin that acts as a measure against Facebooks newest habit of injecting custom tracking JS into in-app browser sessions.
Plugin Name: Block Meta In-App Browser Tracking
Plugin URI: https://git.sr.ht/~mfru/wp-block-meta-in-app-browser-tracking
Description: A plugin that acts as a measure against Metas newest habit of injecting custom tracking JS into in-app browser sessions.
Version: 1.0.0
Author: Maximilian Frühschütz
Author URI: https://maxfruehschuetz.dev
Text Domain: wp-block-facebook-in-app-browser-tracking
Text Domain: wp-block-meta-in-app-browser-tracking
License: GPL 3.0 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

/*    
    Block Facebook In-App Browser Tracking — A plugin that acts as a measure against Facebooks newest habit of injecting custom tracking JS into in-app browser sessions.
    Block Meta In-App Browser Tracking — A plugin that acts as a measure against Metas newest habit of injecting custom tracking JS into in-app browser sessions.
    Copyright (C) 2022  Maximilian Frühschütz

    This program is free software: you can redistribute it and/or modify


@@ 33,7 33,7 @@ License URI: https://www.gnu.org/licenses/gpl-3.0.html

add_action('wp_head', 'bfbibt_fake_tracker_available');
function bfbibt_fake_tracker_available()  {
	// Let Facebook think that their tracker is already installed
	// Let Meta think that their tracker is already installed
	$fake_tracker_1 = '<span id="iab-pcm-sdk"></span>';
	$fake_tracker_2 = '<span id="iab-autofill-sdk"></span>';



@@ 42,7 42,7 @@ function bfbibt_fake_tracker_available()  {

add_action('wp_footer', 'bfbibt_stop_text_selection');
function bfbibt_stop_text_selection() {
	// prevents Facebook from tracking selected text
	// prevents Meta from tracking selected text

	$block_text_selection_script = '
<script defer>