Advertisement
Guest User

Untitled

a guest
May 27th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <script>
  2. var $buoop = {
  3. vs: {i:6,f:2,o:9.63,s:2,c:10}, // browser versions to notify
  4. reminder: 0, // atfer how many hours should the message reappear
  5. // 0 = show all the time
  6. reminderClosed: 0, // if the u,ser closes message it reappears after x hours
  7. onshow: function(infos){}, // callback function after the bar has appeared
  8. onclick: function(infos){}, // callback function if bar was clicked
  9. onclose: function(infos){}, //
  10.  
  11. l: false, // set a language for the message, e.g. "en"
  12. // overrides the default detection
  13. test: true, // true = always show the bar (for testing)
  14. text: "test me now what", // custom notification html text
  15. // Optionally include up to two placeholders "%s" which will be replaced with the browser version and contents of the link tag. Example: "Your browser (%s) is old. Please <a%s>update</a>"
  16. text_xx: "", // custom notification text for language "xx"
  17. // e.g. text_de for german and text_it for italian
  18. newwindow: true, // open link in new window/tab
  19. url: 'http://google.com', // the url to go to after clicking the notification
  20. show: function(){
  21. console.log('show fired')
  22. window.location = "http://google.com"
  23. }
  24. };
  25. function $buo_f(){
  26. var e = document.createElement("script");
  27. e.src = "//browser-update.org/update.min.js";
  28. document.body.appendChild(e);
  29. };
  30. try {document.addEventListener("DOMContentLoaded", $buo_f,false)}
  31. catch(e){window.attachEvent("onload", $buo_f)}
  32. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement