Lense count

juicyhackerr
juicyhackerr Posts: 16 🔥
edited June 2022 in Feature Request #1

Please add indicators for how many lenses you've posted, are rejected, offline, ... So that people have a better view of how much they made already.

Currently I'm using a script I made to do this.

Example

The script (tampermonkey)

// ==UserScript==
// @name         Snapchat Lense Count
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Counts the amount of lenses you made for Snapchat
// @author       juicyhackerr
// @match        https://my-lenses.snapchat.com/lenses
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    setInterval(function(){
        let publicCount = document.getElementsByClassName("css-oayew").length;
        let offlineCount = document.getElementsByClassName("css-1rkipl0").length;
        if(document.querySelector('.count-lenses')) {
            document.querySelector('.css-8wtl5q.css-1la9ixw').style.height = "10000rem";
            document.querySelector('.count-lenses').remove();
        }
        document.querySelector('.css-1al8l24').insertAdjacentHTML("beforeend", "<div class=\"count-lenses\"><div class=\"css-grwrj6\"><div class=\"css-13jvh02\"></div>" + publicCount + "  <div class=\"css-grwrj6\"><div class=\"css-xtunto\"></div>" + offlineCount + "</div><\div>");
    },500);
})();
1
1 votes

Active · Last Updated