自由复制js脚本

你有没有遇到无法复制网页文字的情况?或者要收费,你就可以用这款脚本


你可以把🔓解锁限制拖进收藏夹

源代码:

javascript:!function()%7Bfunction t(e)%7Be.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation()%7Ddocument.querySelectorAll("*").forEach(e=>%7B"none"===window.getComputedStyle(e,null).getPropertyValue("user-select")&&e.style.setProperty("user-select","text","important")%7D),%5B"copy","cut","contextmenu","selectstart","mousedown","mouseup","mousemove","keydown","keypress","keyup"%5D.forEach(function(e)%7Bdocument.documentElement.addEventListener(e,t,%7Bcapture:!0%7D)%7D),alert("解除限制成功啦!")%7D();

这样,你就可以自由复制了