Skip to content

Instantly share code, notes, and snippets.

View flodolo's full-sized avatar

Francesco Lodolo flodolo

View GitHub Profile
(last update: 2022-08-26)
ClearGroupedTabsCancel (v100)
ClearGroupedTabsDelete (v100)
ClearGroupedTabsTitle (v100)
SearchBarPlacementForExistingUsers (v98)
Tools (v96)
Window (v96)
@flodolo
flodolo / marketing_locales.py
Last active August 18, 2022 14:36
Extract shipping locales for Firefox/Focus mobile and VPN
#! /usr/bin/env python3
"""
Check if Pontoon locales are missing in the repository for iOS projects.
"""
import argparse
import json
import sys
from urllib.parse import quote as urlquote
#! /usr/bin/env python3
import json
import os
from urllib.parse import quote as urlquote
from urllib.request import urlopen
query = """
{
vpn_client: project(slug: "firefox-accounts") {
#! /usr/bin/env python3
import json
import os
from urllib.parse import quote as urlquote
from urllib.request import urlopen
tb_net = [
"ach",
#! /usr/bin/env sh
set -e
if [ ! -d Blockzilla.xcodeproj ]; then
echo "[E] Run this script from the project root as tools/export-strings.sh"
exit 1
fi
if [ -d "focusios-l10n" ]; then
#! /usr/bin/env python3
import json
from urllib.parse import quote as urlquote
from urllib.request import urlopen
def main():
query = """
{
@flodolo
flodolo / check_widevine.py
Created June 1, 2021 11:57
Check Widevine translation status
#! /usr/bin/env python3
from urllib.request import urlopen
import json
ids = [
"cfr-doorhanger-video-support-body",
"cfr-doorhanger-video-support-header",
"cfr-doorhanger-video-support-primary-button",
"cfr-doorhanger-video-support-primary-button.accesskey",
@flodolo
flodolo / unused_dtds.py
Created March 28, 2021 15:11
Check for unused DTDs in mozilla-central
#! /usr/bin/env python3
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from collections import defaultdict
import re
import os
import sys
@flodolo
flodolo / generate_list.py
Created March 26, 2021 05:03
Multimedia Tabs Strings MR1
#! /usr/bin/env python3
import json
import os
import sys
from urllib.request import urlopen
def getShippingLocales():
# Get the list of locales shipping in Firefox