Showing soft deleted posts

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8411
  • Loc: USA

Post 3+ Months Ago

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?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6252
  • Loc: Seattle, WA

Post 3+ Months Ago

Is it really that bad to just scroll past it?
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8411
  • Loc: USA

Post 3+ Months Ago

I'm just saying... it's like two lines in javascript anyway.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

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. })();

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 4 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.