Skip to content

oleksavyshnivsky/PPMFriendListAnalyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PPMFriendListAnalyzer

Goal: To see when was each PPM friend last time logged in the game. Specifically to highlight those who were last logged more than 14, 21, 50 days ago.

img

Tested: Latest Chrome for Windows, Tampermonkey extension

Order of actions:

  1. Setup userscript

    • Install userscript extension. For example, Tampermonkey for Chrome (Alternative: Greasemonkey for Firefox)

    • Add PPMFriendListAnalyzer.user.js as new userscript

    • Open any page that start with https://ppm.powerplaymanager.com/ — there must be a new item in the upper right corner, partially hidden behind the right side. It will fully come out on mouse over.

  2. Click the first button — Read the friend list — it will get IDs and Names of friends from the Community/Friends section (all pages)

  3. Click the second button — Check up to 50 friends — it will get last login times of the friends that were not yet checked during the last 12 hours. Amount and time limitations are added just in case. User can either click this button multiple times (until "Not checked: —" in the quick stat under buttons), or change the limitation in the code:

        // Amount of friend profiles to check in one run
        const FRIENDS_PER_RUN = 50
  4. Click the third button — Show friends — it will replace main content of the page with the full list of friends, ordered by last login time, with the next info:

    • Photo with a profile link that will be opened in a new tab
    • Username (without country and status) with a profile link that will be opened in a new tab
    • Datetime of the last login. Styles:
      • bold red — more than 50 days ago;
      • red — more than 21 days ago;
      • orange — more than 14 days ago
    • Amount of teams
  5. Click any photo/username to go to their profile and do whatever is needed there (there is function unfriend in the userscript, but I decided not to finish this functionality)

To update the list, click Read the friend list and Show friends again

  1. Userscript is not designed well enough to keep it always on, so:

    • Click the fourth button — Before uninstall — to remove the userscript data from the browser local storage
    • Switch it off in the userscript extension

Android install

  1. Install Kiwi browser for Android
  2. Download the raw script to the device
    1. Open this repo page in a browser on Android (any browser that has permit to write files)
    2. Open View code block
    3. Open PPMFriendListAnalyzer.user.js file
    4. Right above the contents of the file tap [...]View raw
    5. Download the raw file to the device
  3. Install the script in Kiwi browser for Android
    1. Open Kiwi browser
    2. Tap [Three vertical dots]Extensions
    3. Switch on Developer mode if it's off (it may be on by default)
    4. Click +(from .zip/.crx/.user.js)
    5. Select downloaded file. Card of this script will appear on the Extensions page
    6. Switch on this script in the bottom right corner of its card
    7. Tap OK in the popup window
  4. Open PPM website in Kiwi browser
    1. Load PPM page
    2. Tap on FLA in the upper right corner
    3. Continue with the main order of actions

Video (27.5 MB)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published