Advertisement
Guest User

For Alice Chesire

a guest
Aug 21st, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.80 KB | None | 0 0
  1.   //Only Pending tag suggestions option - By Gwen Hope
  2.   $('#thingifier-pending-suggestions').click(function() {
  3.     if (pageurl.match(/user\/suggestions/)) {
  4.         if ($('#thingifier-pending-suggestions').is(":checked")){
  5.               $('.suggestion-accepted').hide();
  6.               $('.suggestion-rejected').hide();
  7.               GM_setValue("pendtags", $('#thingifier-pending-suggestions').is(":checked"));
  8.         }
  9.         else {
  10.               $('.suggestion-accepted').show();
  11.               $('.suggestion-rejected').show();
  12.             GM_setValue("pendtags", $('#thingifier-pending-suggestions').is(":checked"));
  13.         }
  14.     }
  15.   });
  16.  
  17. //Under config.load
  18.  
  19. if (!!GM_getValue("pendtags", false)) {
  20.     $('#thingifier-pending-suggestions').click();
  21. }
  22.  
  23. //Under html section
  24. <li><input type="checkbox" id="thingifier-pending-suggestions"> Show only "Pending" tag suggestions</li>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement