Showing soft deleted posts

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post September 27th, 2010, 11:48 pm

Once in a while I get my interest peaked when I see a soft deleted post. I get this sudden desire to see what was in that post that was soft deleted.

After I see it and read it, I would like to have the ability to hide it again without refreshing the page.


Can this be implemented?
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 27th, 2010, 11:48 pm

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post September 29th, 2010, 9:44 am

Is it really that bad to just scroll past it?
The Beer Monocle. Classy.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post September 29th, 2010, 9:47 am

I'm just saying... it's like two lines in javascript anyway.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post September 29th, 2010, 12:21 pm

Have you gotten the hang of userscripts, Bogey? :D

JAVASCRIPT Code: [ Select ]
// ==UserScript==
// @name Rehide softdelete
// @description Adds a link to soft deleted posts to rehide them again
// @match http://www.ozzu.com/*
// ==/UserScript==
(function(){
   var elms = document.getElementsByTagName('div');
   for(var i = 0; i < elms.length; i++)
   {
      if(/editedMessage/i.test(elms[i].className))
      {
         var parts = elms[i].innerHTML.match(/p=(\d+)/);
         if(parts)
         {
            elms[i].innerHTML = elms[i].innerHTML
               + " To hide this post click <a href='' onclick=\""
               + "document.getElementById('p" + parts[1] + "').style.display = 'none';"
               + "xs_show_hide('p" + parts[1] + "_softdeleted');"
               + "event.returnValue=false; return event.returnValue;"
               + "\">HERE</a>";
         }
      }
   }
})();
  1. // ==UserScript==
  2. // @name Rehide softdelete
  3. // @description Adds a link to soft deleted posts to rehide them again
  4. // @match http://www.ozzu.com/*
  5. // ==/UserScript==
  6. (function(){
  7.    var elms = document.getElementsByTagName('div');
  8.    for(var i = 0; i < elms.length; i++)
  9.    {
  10.       if(/editedMessage/i.test(elms[i].className))
  11.       {
  12.          var parts = elms[i].innerHTML.match(/p=(\d+)/);
  13.          if(parts)
  14.          {
  15.             elms[i].innerHTML = elms[i].innerHTML
  16.                + " To hide this post click <a href='' onclick=\""
  17.                + "document.getElementById('p" + parts[1] + "').style.display = 'none';"
  18.                + "xs_show_hide('p" + parts[1] + "_softdeleted');"
  19.                + "event.returnValue=false; return event.returnValue;"
  20.                + "\">HERE</a>";
  21.          }
  22.       }
  23.    }
  24. })();
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.