Z powodu problemów prawnych musiałem usunąć kilka problemów z wieloma komentarzami dotyczącymi projektu. Zrobiłem, co następuje:
- Usuwanie wszystkich komentarzy
- edycji tekstu emisji ("Ten problem został usunięty i zablokowany")
- blokując problem
Kopiuj Wklej na pasku adresu przeglądarki:
javascript:(function(){ $('.delete-button.octicon.octicon-x.js-comment-delete').each(function(){ href=$(this).attr("href"); if(href!==undefined) { console.log("DELETING: "+href); $.ajax({type:"DELETE",url:href}); } }); firstCommentToedit=$('form.js-comment-update')[0]; $.ajax({ type:"POST", url:firstCommentToedit.action, data:{ _method:$(firstCommentToedit).find('input[name=_method]').val(), "issue[body]":"THIS ISSUE WAS DELETED AND BLOCKED", authenticity_token:$(firstCommentToedit).find('input[name=authenticity_token]').val() } }); lockLink=$('a[href$="/lock"]')[0]; if (lockLink!==undefined) { $.ajax({ type:"POST", url:lockLink.href, data:{_method:$(lockLink).attr("data-method")} }); } setTimeout(function(){window.location=window.location;},3000) })()
Rozszerzony:
javascript: (function() {
$('.delete-button.octicon.octicon-x.js-comment-delete').each(function() {
href = $(this).attr("href");
if (href !== undefined) {
console.log("DELETING: " + href);
$.ajax({
type: "DELETE",
url: href
});
}
});
firstCommentToedit = $('form.js-comment-update')[0];
$.ajax({
type: "POST",
url: firstCommentToedit.action,
data: {
_method: $(firstCommentToedit).find('input[name=_method]').val(),
"issue[body]": "THIS ISSUE WAS DELETED AND BLOCKED",
authenticity_token: $(firstCommentToedit).find('input[name=authenticity_token]').val()
}
});
lockLink = $('a[href$="/lock"]')[0];
if (lockLink !== undefined) {
$.ajax({
type: "POST",
url: lockLink.href,
data: {
_method: $(lockLink).attr("data-method")
}
});
}
setTimeout(function() {
window.location = window.location;
}, 3000)
})()
jakiegoś powodu nie chcą tylko, aby je zamknąć? – Cairnarvon
Zgaduję, że chce je usunąć, aby mógł ponownie je wprowadzić, aby były połączone. O ile wiem, wszystko, co możesz zrobić, to zamknąć problemy. Nie mogę znaleźć sposobu na usunięcie - usunięcie ich. –
Mogę to zrobić, ale wtedy powiedziałbym, że mam 200 zamkniętych problemów, gdy jest ich tylko 100 i wygląda na to, że katastrofa zawiera wszystkie bezsensowne tytuły ... –