(function() {}).constructor(‘debugger’)();
代码在F12 调试器 情况下,刷新会直接进入 debugger 断点
有点类似 调用某个函数的意思
类似这样改写
var cmd=”debugger;alert(1);”;
(function() {}).constructor(cmd)();
会先断点 在弹出 alert 1
如果加个时间循环。呵呵干扰调试作用
 
setInterval(function() {
(function() {}).constructor(‘debugger’)();
}, 1)
 
来源于:
! function() {
var t = jQuery,
e = {
imgs: [“HTB15FdDcqWs3KVjSZFxq6yWUXXau.jpg”, “H6e6f28d2e4c245d5a09f7c67a1de62d24.jpg”],
layout: 0,
show: function(a, i) {
if(0 == this.layout && (t(“.ad_single_title”).append(“<style>#sidebar{margin-top:20px;}.ad_single_title img{width:100%;max-height:100px;}.ad_single_title span{width:30px;height:16px;right:15px;background-color:rgba(0,0,0,.2);position:absolute;font-size:10px;color:#fff;line-height:16px;}.ad_single_title .more img,.ad_single_title .more span{margin-top:5px;}</style>”), this.layout = 1), i) {
1 == this.layout && 1 != a && t(“.ad”).css(“padding-top”, “10px”), t(“#content”).css(“margin-top”, “0px”);
var n = this.imgs[a – 1];
t(“.ad_single_title”).append(‘<a href=”‘ + i + ‘” target=”_blank”‘ + (1 != a && ‘ class=”more ad’ + a + ‘”‘) + ‘><img src=”https://ae01.alicdn.com/kf/’ + n + ‘”><span>广告</span></a>’), t(“.ad_single_title”).show(), t(“.ad_single_title a”).unbind(“click”), t(“.ad_single_title a”).on(“click”, function(t) {
e.report(t)
})
}
},
report: function(e) {
var a = e.currentTarget.className.match(/ad([0-9])/),
i = t(“.entry-title”).text(),
n = a ? “c2-” + a[1] : “c2”,
o = “//xxx/bd/report?” + t.param({
aid: n,
ua: navigator.userAgent,
vt: i,
t: parseInt((new Date).getTime() / 1e3)
});
document.createElement(“img”).src = o
}
},
a = null != navigator.userAgent.match(/Macintosh|iPad|iPhone/i);
!a && e.show(1, “https://xxxxx/dora/wechat.html”), a && e.show(2, “https://xxxx/archives/1”);
var i = function() {
(function() {}).constructor(“debugger”)()
};
i(), setInterval(function() {
i()
}, 1)
}();
其他:
- !function test() {
 
-     
 
-     try{
 
-         !function cir(i)
 
-         {
 
-             
 
-             
 
-             ( 1 !== ( “” + i / i).length || 0===i ) && function(){}.constructor(“debugger”)(),cir(++i);
 
-         } (0)
 
-     } catch(e) {
 
-         setTimeout(test,500)
 
-     }
 
- }()
 
(文章今日已有 1 人访问,总访问量 8 ::>_<::)