Advertisement
rccharles

asc move breadcrumb 10mar2017

Mar 10th, 2017
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.05 KB | None | 0 0
  1. // ==UserScript==
  2. // @name            ASC move breadcrumb to top
  3. // @namespace       bubo-bubo/gmscripts
  4. // @description     ASC - Move breadcumb because we cannot tell when there is an apple alert
  5. // @include         https://discussions.apple.com/thread/*
  6. // @version     1
  7. // @grant       none
  8. // ==/UserScript==
  9.  
  10.  
  11.  
  12. var debug                   = 0;  // 0 -- no debug
  13.                                   // 1 -- normal debug
  14.                                   // 2 -- intense debug
  15.  
  16. var aDate = new Date();
  17. console.log ("--> move breadcrumb  " + debug + "on " + aDate );
  18.  
  19. // $("#source").prependTo("#destination");
  20.  
  21. // Check if tag exists for ASC alert message.
  22. var alertFieldPresent = $("div#jive-alert-container").length ;
  23. if (debug) console.log("Looking for 'div#jive-alert-container'  found # " + alertFieldPresent);
  24.  
  25. if (alertFieldPresent)
  26. {
  27.   if (debug) console.log("Move breadcrumbs to upper right of window.");
  28.   var output = $("nav#jive-breadcrumb").prependTo("div#body-apple");
  29. }
  30.  
  31. // Return a decent return code
  32. var done = 1;
  33. done = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement