Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name ASC move breadcrumb to top
- // @namespace bubo-bubo/gmscripts
- // @description ASC - Move breadcumb because we cannot tell when there is an apple alert
- // @include https://discussions.apple.com/thread/*
- // @version 1
- // @grant none
- // ==/UserScript==
- var debug = 0; // 0 -- no debug
- // 1 -- normal debug
- // 2 -- intense debug
- var aDate = new Date();
- console.log ("--> move breadcrumb " + debug + "on " + aDate );
- // $("#source").prependTo("#destination");
- // Check if tag exists for ASC alert message.
- var alertFieldPresent = $("div#jive-alert-container").length ;
- if (debug) console.log("Looking for 'div#jive-alert-container' found # " + alertFieldPresent);
- if (alertFieldPresent)
- {
- if (debug) console.log("Move breadcrumbs to upper right of window.");
- var output = $("nav#jive-breadcrumb").prependTo("div#body-apple");
- }
- // Return a decent return code
- var done = 1;
- done = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement