Skip to content

Instantly share code, notes, and snippets.

@blood72
Created May 27, 2021 02:58
Show Gist options
  • Save blood72/b91fa4335b7cc66b93d99187df56957d to your computer and use it in GitHub Desktop.
Save blood72/b91fa4335b7cc66b93d99187df56957d to your computer and use it in GitHub Desktop.
Naver Hyperlink-Auditing Blocker; bypass to move cc.naver.com
// ==UserScript==
// @name Naver Hyperlink-Auditing Blocker
// @version 1.0.0
// @description bypass to move cc.naver.com
// @match http://*.naver.com/*
// @match https://*.naver.com/*
// @grant none
// @run-at document-start
// ==/UserScript==
(function () {
'use strict';
var fn = function () {
['clickcr', 'ncd', 'nclk', 'nclk_v2', 'nclk_proxy', 'goCR'].forEach(function (key) {
window[key] = function () {};
});
document.querySelectorAll('*[data-clk]').forEach(function (el) {
el.removeAttribute('data-clk');
});
};
var el = document.createElement('script');
el.type = 'text/javascript';
el.textContent = '(function () { (function () { var i = setInterval(' + fn.toString() + ', 300); setTimeout("clearInterval(" + i + ");", 6000); })(); })();';
(document.getElementsByTagName('head')[0] || document.body || document.documentElement).appendChild(el);
window.addEventListener('load', fn, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment