Plugin Directory

Changeset 3237927


Ignore:
Timestamp:
02/10/2025 12:43:52 PM (14 months ago)
Author:
topirank
Message:

Init version 1.0.6

Location:
topirank-integration
Files:
32 added
3 edited

Legend:

Unmodified
Added
Removed
  • topirank-integration/trunk/assets/js/topirank-admin-scripts.js

    r3220350 r3237927  
    6262    const skipAllButton = document.querySelector('.skip-all');
    6363
     64    function clickButtonsSequentially(buttons, delay = 100) {
     65        let i = 0;
     66   
     67        function clickNextButton() {
     68            if (i < buttons.length) {
     69                buttons[i].click();
     70                i++;
     71                setTimeout(clickNextButton, delay);
     72            }
     73        }
     74   
     75        clickNextButton();
     76    }
     77   
    6478    if (updateAllButton) {
    6579        updateAllButton.addEventListener('click', function() {
    66             document.querySelectorAll('.update-post').forEach(button => {
    67                 button.click();
    68             });
     80            const updateButtons = document.querySelectorAll('.update-post');
     81            clickButtonsSequentially(updateButtons, 200);
    6982        });
    7083    }
    71 
     84   
    7285    if (skipAllButton) {
    7386        skipAllButton.addEventListener('click', function() {
    74             document.querySelectorAll('.skip-post').forEach(button => {
    75                 button.click();
    76             });
     87            const skipButtons = document.querySelectorAll('.skip-post');
     88            clickButtonsSequentially(skipButtons, 200);
    7789        });
    7890    }
     91   
    7992   
    8093    const copyDomainButton = document.getElementById('copyDomainButton');
  • topirank-integration/trunk/readme.txt

    r3236026 r3237927  
    44Requires at least: 6.0
    55Tested up to: 6.7.1
    6 Stable tag: 1.0.5
     6Stable tag: 1.0.6
    77Requires PHP: 7.3
    88License: GPLv2 or later
     
    5858== Changelog ==
    5959
     60= 1.0.6 =
     61* Improved update posts functionality.
     62
    6063= 1.0.5 =
    6164* Minor admin panel style fixes.
  • topirank-integration/trunk/topirank-integration.php

    r3236026 r3237927  
    33Plugin Name: Topirank Integration
    44Description: Plugin for parsing pages
    5 Version: 1.0.5
     5Version: 1.0.6
    66Author: Topirank
    77License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.