Advertisement
Guest User

Some Logic for Clippy Corn

a guest
Mar 31st, 2012
387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setTimeout(function () {
  2.    
  3.     // Create the stylesheet and append it to the head
  4.     var stylesheet = $("<style type='text/css' />").appendTo("head");
  5.     stylesheet[0].styleSheet ? stylesheet[0].styleSheet.cssText = j : stylesheet.text(j);
  6.    
  7.     // No idea what this does
  8.     $("#notify-container > div").length ? d(4) : h(4);
  9.     m && d(9);
  10.    
  11.     // Determine if we're on a question page
  12.     if (/^\/questions\/\d+\//.test(location.pathname)) {
  13.        
  14.         // Get the question owner and a link to their profile
  15.         var question_owner = $("#question .post-signature.owner"),
  16.             profile_link   = question_owner.find(".user-gravatar32 a");
  17.        
  18.        
  19.         profile_link.length &&
  20.           !m &&
  21.           RegExp("^/users/" + k.userId + "/").test(profile_link.attr("href")) &&  // make sure the profile link is valid
  22.           !/ago|yesterday/.test(question_owner.find(".user-action-time")) &&      // determine if question time does not contain 'ago' or 'yesterday'
  23.           !$(".vote-accepted-on").length &&                                       // ...and there is no accepted answer
  24.           $(".answer").filter(function () {
  25.               return 1 < parseInt($(".vote-count-post", this).text(), 10) && !$(".post-signature.owner", this).length && !$(".community-wiki", this).length && !/ago|yesterday/.test($(".post-signature:last .user-action-time", this).text())
  26.                                                                                   // ...there is an answer with more than one upvote that was not answered by the OP and is not community wiki and was not answered recently
  27.           }).length &&
  28.           d(7)                                                                    // you got me here :P
  29.     }
  30. }, 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement