User:Renamed user 219981023809123890284098240/autodel.js
外观
注意:保存之后,你必须清除浏览器缓存才能看到做出的更改。Google Chrome、Firefox、Microsoft Edge及Safari:按住⇧ Shift键并单击工具栏的“刷新”按钮。参阅Help:绕过浏览器缓存以获取更多帮助。
/*
* 批量提删、提交关注度外挂。
* Copyright (C) 2021 痛心疾首
* Licensed under CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0/deed.zh>
*
* Copyright (C) 2021 痛心疾首
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
// 关注度提交专用物理外挂
function auto_np() {
$('#p-twinkle').mouseover();
$('#friendly-tag').click();
$('[value="Notability"]').click();
$('.tw-tag-submit').click();
}
// 关注度提删专用物理外挂
function auto_np_csd() {
$('#p-twinkle').mouseover();
$('#tw-xfd').click();
$('[value="fame"]').attr("selected", true);
$('[name="xfdreason"]').val('沒有足夠的可靠資料來源能夠讓這個條目符合[[Wikipedia:關注度]]中的標準');
$('.submitButtonProxy').click();
}
// 琐碎内容提删专用外挂
function auto_trivia_csd() {
$('#p-twinkle').mouseover();
$('#tw-xfd').click();
$('[value="batch"]').attr("selected", true);
$('[name="xfdreason"]').val('违反“[[Wikipedia:维基百科不是什么|维基百科不是什么]]”及[[Wikipedia:格式手册/列表#獨立列表之存廢標準|独立列表之存废标准]],另请参见[[WP:TRIVIA|格式手册:琐碎章节(论述)]]、“[[Wikipedia:愛好者內容|爱好者内容]]”等论述。');
$('.submitButtonProxy').click();
}
// 小小作品提删专用外挂
function auto_substub_csd() {
$('#p-twinkle').mouseover();
$('#tw-xfd').click();
$('[value="substub"]').attr("selected", true);
$('[name="xfdreason"]').val('過期小小作品');
$('.submitButtonProxy').click();
}
document.onkeydown = onKeyDown;
function onKeyDown(e) {
var keyCode = e.keyCode || e.which || e.charCode;
var ctrlKey = e.ctrlKey || e.metaKey;
var altKey = e.altKey ;
if (ctrlKey && keyCode == 119) {
auto_np(); // Ctrl+F8
}
if (ctrlKey && keyCode == 120) {
auto_np_csd(); // Ctrl+F9
}
if (ctrlKey && keyCode == 121) {
auto_trivia_csd(); // Ctrl+F10
}
if (ctrlKey && keyCode == 122) {
auto_substub_csd(); // Ctrl+F11
}
//e.preventDefault();
// return false;
}