Advertisement
Guest User

BukkitDev_headerFix

a guest
Oct 16th, 2013
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. // ==UserScript==
  2. // @id BukkitDev_headerFix
  3. // @name dev.bukkit.org Header Fix
  4. // @version 1.0
  5. // @namespace de.luricos.scriptish.bukkit
  6. // @author Luricos
  7. // @description Beautify DBO Header-Frame
  8. // @include http://dev.bukkit.org/*
  9. // @run-at document-end
  10. // ==/UserScript==
  11.  
  12. var $ = unsafeWindow.jQuery;
  13.  
  14. $("section#page").ready(function() {
  15. var bhvDiv = $('<div id="bukkitHeaderFix">');
  16. bhvDiv.css("position", "absolute")
  17. .css("top", "0px")
  18. .css("height", "140px")
  19. .css("width", "100%");
  20.  
  21. var bhvNavBar = $('<div id="bukkitHeaderFix_navBar">');
  22. bhvNavBar.css("position", "absolute")
  23. .css("top", "120px")
  24. .css("height", "38px")
  25. .css("width", "100%")
  26. .css("border-top", "1px solid rgba(252, 252, 252, 0.42)")
  27. .css("border-bottom", "1px solid rgb(3, 42, 70)")
  28. .css("background-color", "rgb(32, 150, 225)");
  29.  
  30. var bhvDivBackground = $('<div id="bukkitHeaderFix_background">');
  31. bhvDivBackground.css("position", "absolute")
  32. .css("top", "0px")
  33. .css("width", "100%")
  34. .css("height", "6px")
  35. .css("background-color", "rgb(27, 27, 27)")
  36. .css("box-shadow", "0px 2px 5px rgb(60, 178, 227)");
  37.  
  38. $(bhvDiv.append(bhvNavBar).append(bhvDivBackground)).insertBefore($("section#page > header#hd"));
  39. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement