<commit_before>// ==UserScript==
// @name        Google Play - Switch to English
// @author      Tailszefox
// @namespace   localhost
// @description Forces language to English on Google Play Store
// @icon        https://i.imgur.com/7RZiSjY.jpg
// @include     https://play.google.com/store/*
// @exclude     https://play.google.com/store/*hl=en*
// @version     1.0
// @grant       none
// @inject-into content
// ==/UserScript==

var newLocation = window.location.href;
newLocation = newLocation.replace("&hl=fr", "");
newLocation = newLocation.replace("?hl=fr", "");
newLocation += "&hl=en";

window.location.href = newLocation;<commit_msg>Google Play: add a link to change language instead of switching automatically<commit_after>// ==UserScript==
// @name        Google Play - Switch to English
// @author      Tailszefox
// @namespace   localhost
// @description Add a link to switch to English on Google Play Store
// @icon        https://i.imgur.com/7RZiSjY.jpg
// @include     https://play.google.com/store/*
// @exclude     https://play.google.com/store/*hl=en*
// @version     1.1
// @grant       none
// @inject-into content
// ==/UserScript==

var newLocation = window.location.href;
newLocation = newLocation.replace("&hl=fr", "");
newLocation = newLocation.replace("?hl=fr", "");
newLocation += "&hl=en";

var changeList = document.createElement("li");
changeList.classList.add("fle8Af");

var changeLink = document.createElement("a");
changeLink.classList.add("gm1qLe");
changeLink.href = newLocation;

changeLink.appendChild(document.createTextNode("English"));
changeList.appendChild(changeLink);
document.querySelectorAll("ul.CoKTif")[0].appendChild(changeList);
{'fraction_non_alphanumeric': 0.16587395957193818, 'fraction_numerical': 0.00535077288941736, 'mean_word_length': 3.7677053824362607, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '116418', 'n_tokens_mistral': 514, 'n_tokens_neox': 510, 'n_words': 114}