instagram auto like console code

Instagram पर सभी पोस्ट्स को स्वतः स्क्रॉल और लाइक करने के लिए आप ब्राउज़र के कंसोल में जावास्क्रिप्ट का उपयोग कर सकते हैं। कृपया ध्यान दें कि ऐसा करना Instagram की सेवा शर्तों का उल्लंघन कर सकता है और आपके अकाउंट को बैन किया जा सकता है। इसलिए, इस स्क्रिप्ट का उपयोग जोखिम के साथ करें।


यहाँ एक जावास्क्रिप्ट कोड दिया जा रहा है जो इंस्टाग्राम फीड को स्वतः स्क्रॉल और लाइक करेगा:


javascript

(function() {
    // Define the interval time between actions (in milliseconds)
    var scrollSpeed = 2000; // Adjust this value for faster/slower scrolling and liking

    // Function to like posts
    function likePosts() {
        let buttons = document.querySelectorAll('svg[aria-label="Like"][width="24"][height="24"]');
        buttons.forEach((button) => {
            button.parentElement.click();
        });
    }

    // Function to auto-scroll
    function autoScroll() {
        window.scrollBy(0, window.innerHeight);
        likePosts();
    }

    // Create a variable to store the interval ID
    var scrollInterval;

    // Function to start auto-scrolling and liking
    function startAutoScrollAndLike() {
        scrollInterval = setInterval(autoScroll, scrollSpeed);
    }

    // Function to stop auto-scrolling and liking
    function stopAutoScrollAndLike() {
        clearInterval(scrollInterval);
    }

    // Start auto-scrolling and liking when the script runs
    startAutoScrollAndLike();

    // Expose the stop function to the global scope
    window.stopAutoScrollAndLike = stopAutoScrollAndLike;
})();

console.log("Auto-scrolling and liking started. To stop, call stopAutoScrollAndLike().");

उपयोग करने के चरण:

    अपने ब्राउज़र में इंस्टाग्राम खोलें और अपने फीड पर जाएं।
    ब्राउज़र कंसोल खोलें (F12 या Ctrl+Shift+I) और 'Console' टैब पर जाएं।
    उपरोक्त जावास्क्रिप्ट कोड को कंसोल में पेस्ट करें और एंटर दबाएं।

यह कोड स्वतः स्क्रॉलिंग और लाइकिंग शुरू कर देगा। यदि आप स्क्रॉलिंग और लाइकिंग को रोकना चाहते हैं, तो कंसोल में stopAutoScrollAndLike() टाइप करें और एंटर दबाएं।
चेतावनी:

    यह कोड Instagram की सेवा शर्तों का उल्लंघन कर सकता है और आपके अकाउंट को बैन किया जा सकता है।
    इसका उपयोग केवल शैक्षिक उद्देश्यों के लिए करें और अपने अकाउंट की सुरक्षा को ध्यान में रखते हुए इसका सावधानीपूर्वक उपयोग करें।

javascript
(function likePostsAndCommentsWithHashtag() { function likeElement(element) { const likeButton = element.querySelector('svg[aria-label="Like"]'); if (likeButton) { likeButton.parentElement.click(); } } function containsHashtag(element, hashtag) { return element.textContent.includes(hashtag); } function scrollToNextPost() { window.scrollBy(0, window.innerHeight); } function waitForNextPost() { return new Promise(resolve => { setTimeout(() => { resolve(); }, 2000); }); } async function likeAllMatchingPostsAndComments() { const hashtag = '#rscit'; let postCounter = 0; while (true) { const posts = document.querySelectorAll('article'); if (postCounter >= posts.length) { scrollToNextPost(); await waitForNextPost(); postCounter = 0; } else { const post = posts[postCounter]; if (containsHashtag(post, hashtag)) { likeElement(post); } const comments = post.querySelectorAll('ul li'); comments.forEach(comment => { if (containsHashtag(comment, hashtag)) { likeElement(comment); } }); postCounter++; } } } likeAllMatchingPostsAndComments(); })();

Comments