Delete Mafia
-
could be. i tested it via running it in console.
if it works via userscript then theoretuically it will work as custom JS
Summoning @boomzilla and'or @PJH for testing?
-
How about we add something that checks the category to the script?
-
Well we already have this in
<body>
:<script> // prevent deletes in /t/1000 function preventT1000Deletes(){ var PostMenuView=require('discourse/components/post-menu').default; var b=PostMenuView.prototype.clickDelete; if( !b ){ var id = setTimeout( preventT1000Deletes, 1000 ); return; } var a=function(a){ if(1E3==a.topic_id){ return $("#discourse-modal #modal-alert").html("<img style='padding:10px;' src='/uploads/default/8214/16c00f5bd6b57125.png'/>Press <kbd>ctrl + w</kbd> to delete anyway?"), $("#discourse-modal h3").html("Please do not delete posts from the 1000 thread. Edit your post, or flag it for moderator attention to hide content. Thanks"), $("#discourse-modal").modal("show"),!1; } b.apply( this, arguments ); }; PostMenuView.reopen({clickDelete:a}); PostMenuView.prototype.clickDelete=a; } setTimeout( preventT1000Deletes, 200 ); </script>
-
How about we add something that checks the category to the script?
why? it doesn't prevent the delete, just ask you to confirm it.
-
-
I think asking you to confirm it meets the use case here.
- You can't Weng something with a single click, so you won't get mod killed for scrolling on mobile
- Admins can delete posts for raisins
-
@accalia said:
for a given value of "work" yes.
On mobile?
Zero is a value! As isstrawberry
.Admins can delete posts for raisins
What is it with raisins nowadays? Why must we always give in to their evil demands?!
-
Because if we don't give in to the raisins, they'll rig the election for Donald Trump
-
-
I think asking you to confirm it meets the use case here.
You can't Weng something with a single click, so you won't get mod killed for scrolling on mobile
Admins can delete posts for raisinsthat was @accalia's point exactly!
-
-
What @ben_lubar seemed to be getting at is why apply it to all categories? It seems a bit silly.
It's only an actual problem in Mafia where it's only happened once anyway.
-
How often are posts deleted anyway? It's probably, what, 0.1% of all posts get deleted? Plus it helps with mobile, although that is like treating a severed arm with a Band-Aid.
-
It's probably, what, 0.1% of all posts get deleted?
I assume it's higher since @fbmac arrived.
-
What @ben_lubar seemed to be getting at is why apply it to all categories? It seems a bit silly.
Silly?
SILLY?!
THIS! IS! DISCOURSE!
-
@RaceProUK said:
It's probably, what, 0.1% of all posts get deleted?
I assume it's higher since @fbmac arrived.
irregardless, it adds a sigle tap/click to a very small percentage of users and has zero impact on the majority.
-
So exactly like the current solution?
-
I wonder if it could just automatically hide a post's history if it has edits but every edit has been either to delete it or restore it to its original glory.
-
they'll rig the election for Donald Trump
Serial numbers have always been the primary voters in our elections.
-
Why not (radical idea) add the pop-up confirm I wrote to EVERY delete button-- so that users who accidentally click/tap can cancel, and users who MEANT to click/tap have to confirm their destructive action.
Y'know, like every single website has been doing since javascript:confirm was a thing.
Filed under: You are all making this way more complex than it needs to be.
-
@Lorne_Kates said:
Why not (radical idea) add the pop-up confirm I wrote to EVERY delete button-- so that users who accidentally click/tap can cancel, and users who MEANT to click/tap have to confirm their destructive action.
I don't support this since a) undeleting is easy
Thus spoke the Prophet. Stop doing it wrong, Lorne.
-
@Lorne_Kates said:
Why not (radical idea) add the pop-up confirm I wrote to EVERY delete button-- so that users who accidentally click/tap can cancel, and users who MEANT to click/tap have to confirm their destructive action.
I don't support this since a) undeleting is easy
Thus spoke the Prophet. Stop doing it wrong, Lorne.
Counterpoint: Fuck him. This is our forum.
-
@Lorne_Kates said:
Y'know, like every single website has been doing since javascript:confirm was a thing.
Ever delete a mail in Gmail?
And to expound on @wood"s quote...
Not that i have much feeling on the matter either way..
-
When the article complains about being told there are no search results, I think it can be ignored
-
Ever delete a mail in Gmail?
Rarely. It still requires two button clicks. Click the checkbox, click delete. There's an easy undelete option. And it doesn't spam everyone in my address book with "Lorne has flagged this email for deletion unless acted upon by an outside moderator's life-force".
Or I can open the email, seek out the delete button, and delete it. Still multiple clicks.
On mobile "it's different" because it's even harder to delete an email accidentally.
Number of times I've accidentally deleted an email in Gmail-- or any mail program, web or desktop-- 0. Because the delete button isn't in the scroll path, or anywhere in the UX usage-path.
-
@Lorne_Kates said:
Lorne has flagged this email for deletion unless acted upon by an outside moderator's life-force
Goddamnit, Lorne! Stop deleting your emails!
-
Has @fbmac infected Lorne?
-
Has @fbmac infected Lorne?
@Lorne_Kates has been infected and will be incinerated in a mass, unmarked grave in 42 hours unless flagged.
-
-
:tombstone.gif:Here lies some random schmuck, we couldn't be bothered to find a name:tombstone.gif:
-
@Lorne_Kates said:
mass
E_AMBIGUITY
Did you mean?
Mass(Physics)
Mass(Catholic Liturgy)
bioMass(Flood)Filed Under: Were these choices relevant? If not, please click here to leave comments
-
-
-
-
-
-
-
-
-
-