View source for User:BZPN/RfD.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
// <nowiki>
$(function () {
// Sprawdzamy, czy strona należy do przestrzeni nazw "Project:Requests for Deletion"
var pageName = mw.config.get('wgPageName');
if (!pageName.startsWith("Project:Requests for Deletion")) {
return;
}
// Funkcja dodająca przycisk "Quick Close" w każdej podsekcji
function addQuickCloseButtons() {
$('span.mw-editsection-bracket').each(function () {
try {
var $this = $(this);
var sectionLink = $this.find('a').first();
if (!sectionLink.length) return;
// Wyciągnięcie numeru sekcji z URL
var href = sectionLink.attr('href');
var m = href.match(/action=edit§ion=(\d+)/);
if (!m) return;
var sectionNumber = m[1];
// Dodajemy separator i przycisk "Quick Close"
$this.append(' | ');
010
1:0
Return to User:BZPN/RfD.js.