편집 필터 기록

편집 필터 둘러보기 (처음 | 최근 필터의 바뀜 | 과거의 편집 검토하기 | 편집 필터 기록)
기록 50,314에 대한 자세한 정보

2023년 2월 22일 (수) 22:41: 하늘 (토론 | 기여)님이 위키독:Regexedit에서 "edit" 동작을 수행하여 필터 0이(가) 작동했습니다. 조치: 태그; 필터 설명: (검사)

편집에서 바뀐 내용

import osimport redirectory = "."filelist = os.listdir(directory)filelist = sorted(filelist)#input("폴더 경로 >>")for e in filelist:    if e.find("py") != -1: continue    file = open(f'{directory}/{e}', "r", encoding="utf-8")    string = file.read()    file.close()    string = string.replace(" ", " ")    string = re.sub(r"\n{2,}", "\n\n", string)    string = re.sub(r"\[\[wp\-d/[^/]*/View\|([^]]*)\]\]", r"[[\1]]", string)    string = re.sub(        r"\[http://ko\.[^.]*\.wikidok\.net/wp\-d/[^/]*/View[ ]([^]]*)\]", r"[[\1]]", string)    string = re.sub(        r"\[http://ko\.[^.]*\.wikidok\.net/dok/[^ ]*[ ]([^]]*)\]", r"[[\1]]", string)    string = re.sub(r"<span>([^<]*)</span>", r"\1", string)\        .replace("<span></span>", "")    string = re.sub(r"\{\{색\|rgb\(0, 0, 0\)\|([^}]*)\}\}", r"\1", string)    string = re.sub(        r'<span mce\-style\="color: #000000;" style="color: #000000;">([^<]*)</span>', r"\1", string)    string = re.sub(        r'<span mce\-style\="color:([^"]*)" style="[^"]*">([^<]*)</span>', r"{{색|\1|\2}}", string)    string = re.sub(        r'<span mce\-style\="[^"]*" style="[^"]*">([^<]*)</span>', r"\1", string)    string = re.sub(        r'\=\=[ ]*[0-9]\.', "==", string)    string = re.sub(        r'\=\=[ ]*[0-9]\.[0-9]\.', "==", string)    string = re.sub(        r'\=\=[ ]*[0-9]\-[0-9]\.', "==", string)    string = re.sub(        r'\n <br />\n', "", string)    string = re.sub(        r'\n<br />', "", string)    string = re.sub(        r'\{\|\n', '{| class="wikitable"\n', string).replace('''{| class="wikitable"|align="center"''', '''{| class="wikitable" align="center"|''').replace('align="center"|', '')    # youtube    string = re.sub(        r'<span.*?"\/\/[^/]*\/embed\/([^"]*)"><\/span>', r'{{유튜브|\1}}', string)        string = re.sub(        r'== (.*?)\n ==', r'== \1 ==', string)    string = re.sub(        r'<div contenteditable="false">\n*<div class="alert wiki-alert-default00" contenteditable="true">\n*(.*)\n*<\/div>\n*<\/div>', r'{{안내바|\1}}\n', string)    string = re.sub(        r'<blockquote>(.*?)<\/blockquote>', r'{{인용문2|\1}}\n', string)    string = string.replace("dok/", "")    print(string)    file = open(f'{directory}/{e}', "w", encoding="utf-8")    file.write(string)    file.close()    print()
{{삭제|실수}}
[[분류:위키독 포크/야구공작소]]

명령 변수

변수
사용자의 편집 수 (user_editcount)
36972
사용자 계정 이름 (user_name)
'하늘'
사용자 계정 만든 후 지난 시간 (user_age)
97721834
사용자 권한 그룹 (자동으로 부여된 권한 포함) (user_groups)
[ 0 => '*', 1 => 'user', 2 => 'autoconfirmed' ]
문서 ID (page_id)
202912
문서 이름공간 (page_namespace)
419
(이름공간을 뺀) 문서 제목 (page_title)
'Regexedit'
전체 문서 제목 (page_prefixedtitle)
'위키독:Regexedit'
동작 (action)
'edit'
편집 요약/이유 (summary)
''
이전 콘텐츠 모델 (old_content_model)
'wikitext'
새 콘텐츠 모델 (new_content_model)
'wikitext'
편집 전 과거 문서의 위키텍스트 (old_wikitext)
'import osimport redirectory = "."filelist = os.listdir(directory)filelist = sorted(filelist)#input("폴더 경로 >>")for e in filelist: if e.find("py") != -1: continue file = open(f'{directory}/{e}', "r", encoding="utf-8") string = file.read() file.close() string = string.replace(" ", " ") string = re.sub(r"\n{2,}", "\n\n", string) string = re.sub(r"\[\[wp\-d/[^/]*/View\|([^]]*)\]\]", r"[[\1]]", string) string = re.sub( r"\[http://ko\.[^.]*\.wikidok\.net/wp\-d/[^/]*/View[ ]([^]]*)\]", r"[[\1]]", string) string = re.sub( r"\[http://ko\.[^.]*\.wikidok\.net/dok/[^ ]*[ ]([^]]*)\]", r"[[\1]]", string) string = re.sub(r"<span>([^<]*)</span>", r"\1", string)\ .replace("<span></span>", "") string = re.sub(r"\{\{색\|rgb\(0, 0, 0\)\|([^}]*)\}\}", r"\1", string) string = re.sub( r'<span mce\-style\="color: #000000;" style="color: #000000;">([^<]*)</span>', r"\1", string) string = re.sub( r'<span mce\-style\="color:([^"]*)" style="[^"]*">([^<]*)</span>', r"{{색|\1|\2}}", string) string = re.sub( r'<span mce\-style\="[^"]*" style="[^"]*">([^<]*)</span>', r"\1", string) string = re.sub( r'\=\=[ ]*[0-9]\.', "==", string) string = re.sub( r'\=\=[ ]*[0-9]\.[0-9]\.', "==", string) string = re.sub( r'\=\=[ ]*[0-9]\-[0-9]\.', "==", string) string = re.sub( r'\n <br />\n', "", string) string = re.sub( r'\n<br />', "", string) string = re.sub( r'\{\|\n', '{| class="wikitable"\n', string).replace('''{| class="wikitable"|align="center"''', '''{| class="wikitable" align="center"|''').replace('align="center"|', '') # youtube string = re.sub( r'<span.*?"\/\/[^/]*\/embed\/([^"]*)"><\/span>', r'{{유튜브|\1}}', string) string = re.sub( r'== (.*?)\n ==', r'== \1 ==', string) string = re.sub( r'<div contenteditable="false">\n*<div class="alert wiki-alert-default00" contenteditable="true">\n*(.*)\n*<\/div>\n*<\/div>', r'{{안내바|\1}}\n', string) string = re.sub( r'<blockquote>(.*?)<\/blockquote>', r'{{인용문2|\1}}\n', string) string = string.replace("dok/", "") print(string) file = open(f'{directory}/{e}', "w", encoding="utf-8") file.write(string) file.close() print() [[분류:위키독 포크/야구공작소]]'
편집 후 새 문서의 위키텍스트 (new_wikitext)
'{{삭제|실수}}'
편집 전후의 차이 (edit_diff)
'@@ -1,2 +1,1 @@ -import osimport redirectory = "."filelist = os.listdir(directory)filelist = sorted(filelist)#input("폴더 경로 >>")for e in filelist: if e.find("py") != -1: continue file = open(f'{directory}/{e}', "r", encoding="utf-8") string = file.read() file.close() string = string.replace(" ", " ") string = re.sub(r"\n{2,}", "\n\n", string) string = re.sub(r"\[\[wp\-d/[^/]*/View\|([^]]*)\]\]", r"[[\1]]", string) string = re.sub( r"\[http://ko\.[^.]*\.wikidok\.net/wp\-d/[^/]*/View[ ]([^]]*)\]", r"[[\1]]", string) string = re.sub( r"\[http://ko\.[^.]*\.wikidok\.net/dok/[^ ]*[ ]([^]]*)\]", r"[[\1]]", string) string = re.sub(r"<span>([^<]*)</span>", r"\1", string)\ .replace("<span></span>", "") string = re.sub(r"\{\{색\|rgb\(0, 0, 0\)\|([^}]*)\}\}", r"\1", string) string = re.sub( r'<span mce\-style\="color: #000000;" style="color: #000000;">([^<]*)</span>', r"\1", string) string = re.sub( r'<span mce\-style\="color:([^"]*)" style="[^"]*">([^<]*)</span>', r"{{색|\1|\2}}", string) string = re.sub( r'<span mce\-style\="[^"]*" style="[^"]*">([^<]*)</span>', r"\1", string) string = re.sub( r'\=\=[ ]*[0-9]\.', "==", string) string = re.sub( r'\=\=[ ]*[0-9]\.[0-9]\.', "==", string) string = re.sub( r'\=\=[ ]*[0-9]\-[0-9]\.', "==", string) string = re.sub( r'\n <br />\n', "", string) string = re.sub( r'\n<br />', "", string) string = re.sub( r'\{\|\n', '{| class="wikitable"\n', string).replace('''{| class="wikitable"|align="center"''', '''{| class="wikitable" align="center"|''').replace('align="center"|', '') # youtube string = re.sub( r'<span.*?"\/\/[^/]*\/embed\/([^"]*)"><\/span>', r'{{유튜브|\1}}', string) string = re.sub( r'== (.*?)\n ==', r'== \1 ==', string) string = re.sub( r'<div contenteditable="false">\n*<div class="alert wiki-alert-default00" contenteditable="true">\n*(.*)\n*<\/div>\n*<\/div>', r'{{안내바|\1}}\n', string) string = re.sub( r'<blockquote>(.*?)<\/blockquote>', r'{{인용문2|\1}}\n', string) string = string.replace("dok/", "") print(string) file = open(f'{directory}/{e}', "w", encoding="utf-8") file.write(string) file.close() print() -[[분류:위키독 포크/야구공작소]] +{{삭제|실수}} '
편집 중 추가된 줄 (added_lines)
[ 0 => '{{삭제|실수}}' ]
편집이 토르 끝 노드를 통해 바뀌었는 지의 여부 (tor_exit_node)
false
바뀐 시점의 유닉스 시간 기록 (timestamp)
1677073294