• 0 Posts
  • 16 Comments
Joined 6 months ago
cake
Cake day: May 21st, 2025

help-circle














  • Is Power Amp installed from Google Play or side loaded? Android Auto will inexplicably refuse to launch side loaded apps half of the time. If it is launching but no audio is coming out, this isn’t the solution for you

    To get around that I download my app (in my case, CoMaps) via Obtainium + Shizuku with the option “Set Google Play as the installation source”

    Since Poweramp isn’t FOSS, you’ll have to download their provided apk & move it to /data/local/tmp with adb

    Then you can run pm install -i "com.android.vending" /data/local/tmp/Poweramp-build-999-uni.apk

    This will overwrite the installed app’s installation source with Google Play and let Android Auto work with it


  • I wrote this one ages ago to throw shopgoodwill.com items in my calendar because the times are in PDT and they don’t have any built in notification (that works)

    Also made it work with govdeals but I haven’t tested that in ages so YMMV

    Writes it to a Google calendar URL. I had it write to an ICS file at one point but I don’t have version control on this one file

    javascript: (
        () => {
            function createItem(productTitle, date) {
                console.log(productTitle, date);
                 window.open(`https://calendar.google.com/calendar/render?action=TEMPLATE&text=%24%7BproductTitle%7D&details=%24%7BproductTitle%7D @ Goodwill ${window.location}&dates=${date}/${date}`);
            }
            if (window.location.href.toString().includes("https://shopgoodwill.com/item/")) {
                try {
                    let title = document.querySelectorAll(".mb-4.d-none.d-md-block.ng-star-inserted")[0].innerText;
                    let headers = document.querySelectorAll("th.font-weight-bold.text-nowrap");
                    let time;
                    if (headers[4].innerHTML == " Handling Price: ") {
                        time = headers[5] }
                    else {
                        time = headers[4]
                    }
                    time = time.parentElement.children[1].innerHTML.substring(0, 25) + "DT";
                    console.log(headers);
                    createItem(title, new Date(time).toISOString().split(".")[0].replace(/-/gi, "").replace(/:/gi, "") + "Z");
                } catch (e) {
                    alert("An error occurred, check the console for full details: " + e);
                    console.log(e); 
                }
            } else if (window.location.href.toString().includes("https://www.govdeals.com/index.cfm")) {
                try {
                    createItem(document.querySelectorAll("#asset_short_desc_id")[0].innerText, new Date(document.querySelectorAll("tr > td[align='right'][nowrap='nowrap'] > b")[0].innerText.replace("ET", "EDT")).toISOString().split(".")[0].replace(/-/gi, "").replace(/:/gi, "") + "Z");
                } catch (e) {
                    alert("An error occurred, check the console for full details: " + e);
                    console.log(e);
                }
            } else {
                alert("This is not a goodwill or govdeals item page.");
            }
        })();