Jump to content

User:1AmNobody24/Projectspace Redirect blanking

From Wikipedia, the free encyclopedia
redirect := "^#\s*redirect\s?\n*\[\[|\{\{soft}|\{\{softs*r|\{\{softr";
break := "wikitable";
rcat := "\{\{r\s*";
section := "(?:^#\s{0,3}redirect\s{0,3}\[\[\w+:(\w|\s|_|\/)+#.+\]\]\s)";

equals_to_any(page_namespace, 4, 5, 6, 10, 12, 13, 126) &
!("confirmed" in user_groups) &
old_size <= 400 &
(
    removed_lines irlike redirect |
    (
        old_wikitext irlike redirect &
        (
            new_html rlike 'class="new" title="' |
            added_lines irlike break |
            (
                new_size > old_size &
                !added_lines irlike rcat
            )
        )
    )
) &
!(added_lines irlike section) &
!(contains_any(lcase(added_lines), "{{subst:rfd", "{{subst:db-", "{{db-", "mfd", "{{historical")) &
!(page_title irlike "sandbox") &
!(user_name in removed_lines) &
!(summary irlike "^(?:revert|rv|undid)") &
page_first_contributor != user_name