machsix / Super-preloader

Userscript to enable autopagerizing as well as preloading
https://machsix.github.io/Super-preloader/Super_preloaderPlus_one_New.user.js
GNU General Public License v3.0
573 stars 83 forks source link

Greasy Fork 將這個 Script 移除了 #641

Closed markwu closed 3 years ago

markwu commented 3 years ago

不知道為什麼 Greasy Fork 將這個 Script 移除了,沒辦法從那邊安裝了。

markwu commented 3 years ago

是什麼原因被刪除了呢?

markwu commented 3 years ago

https://greasyfork.org/zh-TW/reports/14390

image

看樣子是這一段 minified 的 code,這是不允許的。

    (function (module, exports) {
    !function(e,t){module.exports=t();}(this,function(){return function(e){function t(n){if(o[n])return o[n].exports;var s=o[n]={exports:{},id:n,loaded:!1};return e[n].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t,o){function n(e){return e&&e.__esModule?e:{default:e}}var s=o(1),i=n(s);e.exports=i.default;},function(e,t,o){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(){var e=this,t=this.el,o=this.opts||c,n={};if(t.style.position="absolute",this.handle=o.handle||t,o.constrain){for(var s=o.relativeTo||t.parentNode,a=t,h=0,v=0;a!==s;)a=a.parentNode,(0, i.isRelative)(a)&&(h-=a.offsetLeft,v-=a.offsetTop),a===s&&(h+=a.offsetLeft,v+=a.offsetTop);var l=h+s.offsetWidth-t.offsetWidth,f=v+s.offsetHeight-t.offsetHeight;n.xClamp=(0, i.generateClamp)(h,l),n.yClamp=(0, i.generateClamp)(v,f);}this.opts=o,this.data=n,this.events={mousedown:u.mousedown.bind(this),mouseup:u.mouseup.bind(this),touchstart:u.touchstart.bind(this),touchstop:u.touchstop.bind(this),scrollFix:function(t){e.isDragging&&t.preventDefault();}},this.handleMove=r(this.opts.customMove),this.handle.addEventListener("mousedown",this.events.mousedown,!1),this.handle.addEventListener("touchstart",this.events.touchstart,!1),document.addEventListener("touchmove",this.events.scrollFix,{passive:!1});}Object.defineProperty(t,"__esModule",{value:!0});var i=o(2),u=o(3),r=(0, i.generateMoveFn)(),c={constrain:!1,relativeTo:null,handle:null,ignoreFn:null,highlightInputs:!1,onMouseDown:null,onMouseMove:null,onMouseUp:null,onTouchStart:null,onTouchMove:null,onTouchStop:null,customMove:null},a=function(){function e(t,o){if(n(this,e),!t)throw Error("Must include moveable element");this.el=t,this.opts=o,s.call(this);}return e.prototype.reinit=function(){this.destroy(),s.call(this);},e.prototype.destroy=function(){var e=this.events;this.handle.removeEventListener("mousedown",e.mousedown,!1),document.removeEventListener("mousemove",e.mousemove,!1),document.removeEventListener("mouseup",e.mouseup,!1),this.handle.removeEventListener("touchstart",e.touchstart,!1),document.removeEventListener("touchmove",e.touchmove,!1),document.removeEventListener("touchstop",e.touchstop,!1),document.removeEventListener("touchmove",this.events.scrollFix,{passive:!1});},e}();t.default=function(e,t){return new a(e,t)};},function(e,t){function o(e,t){return function(o){return Math.min(Math.max(o,e),t)}}function n(e){return "relative"===window.getComputedStyle(e).position}function s(){return window.requestAnimationFrame?function(e){var t=e||i;return function(e,o,n){window.requestAnimationFrame(function(){t(e,o,n);});}}:function(e){return function(t,o,n){var s=e||i;s(t,o,n);}}}function i(e,t,o){e.style.left=t+"px",e.style.top=o+"px";}Object.defineProperty(t,"__esModule",{value:!0}),t.generateClamp=o,t.isRelative=n,t.generateMoveFn=s;},function(e,t){function o(e){var t=this.opts;if(t.highlightInputs){var o=e.target.tagName.toLowerCase();if("input"===o||"textarea"===o)return}if(!t.ignoreFn||!t.ignoreFn(e)){if(0===e.button){var s=this.el,i=this.events;"function"==typeof t.onMouseDown&&t.onMouseDown(s,e);var u=e.clientX-s.offsetLeft,r=e.clientY-s.offsetTop;i.mousemove=n.bind(this,u,r),document.addEventListener("mousemove",i.mousemove,!1),document.addEventListener("mouseup",i.mouseup,!1);}e.preventDefault();}}function n(e,t,o){var n=this.el,s=this.opts,i=this.data;"function"==typeof s.onMouseMove&&s.onMouseMove(n,o);var u=o.clientX-e,r=o.clientY-t;return s.constrain&&(u=i.xClamp(u),r=i.yClamp(r)),this.handleMove(n,u,r),o.preventDefault(),!1}function s(e){var t=this.el,o=this.opts,n=this.events;"function"==typeof o.onMouseUp&&o.onMouseUp(t,e),document.removeEventListener("mouseup",n.mouseup,!1),document.removeEventListener("mousemove",n.mousemove,!1);}function i(e){var t=this.opts;if(t.highlightInputs){var o=e.target.tagName.toLowerCase();if("input"===o||"textarea"===o)return}if(!t.ignoreFn||!t.ignoreFn(e)){var n=this.el,s=this.events;"function"==typeof t.onTouchStart&&t.onTouchStart(n,e);var i=e.targetTouches[0],r=i.clientX-n.offsetLeft,c=i.clientY-n.offsetTop;s.touchmove=u.bind(this,r,c),this.isDragging=!0,document.addEventListener("touchmove",s.touchmove,!1),document.addEventListener("touchend",s.touchstop,!1),document.addEventListener("touchcancel",s.touchstop,!1);}}function u(e,t,o){var n=this.el,s=this.opts,i=this.data;"function"==typeof s.onTouchMove&&s.onTouchMove(n,o);var u=o.targetTouches[0],r=u.clientX-e,c=u.clientY-t;return s.constrain&&(r=i.xClamp(r),c=i.yClamp(c)),this.handleMove(n,r,c),o.preventDefault(),!1}function r(e){this.isDragging=!1;var t=this.el,o=this.opts,n=this.events;"function"==typeof o.onTouchStop&&o.onTouchStop(t,e),document.removeEventListener("touchmove",n.touchmove,!1),document.removeEventListener("touchend",n.touchstop,!1),document.removeEventListener("touchcancel",n.touchstop,!1);}Object.defineProperty(t,"__esModule",{value:!0}),t.mousedown=o,t.mousemove=n,t.mouseup=s,t.touchstart=i,t.touchmove=u,t.touchstop=r;}])});
    }(displace_min));
wolph commented 3 years ago

It seems that Greasy Fork has automatically removed all scripts with minified code, several of my scripts have been removed as well without any advance warning.

I hope they'll revert this and handle this in a better way in the future, otherwise I'm done with Greasy Fork, this is no way to treat your users...

With regards to installing it, you can install it from here: https://machsix.github.io/Super-preloader/Super_preloaderPlus_one_New.user.js

luboq commented 3 years ago

希望能改用未 minified 的 displacejs.js:https://github.com/catc/displace/blob/master/dist/displace.js 然后重新上架Greasy Fork。

可以试着联系下管理,问问能否恢复原页面(包括评论、数据等)

禁止压缩混淆的原则,支持。但如果不能恢复原页面的话,处理方式上有进步空间。

mS0gxokXEsg5ysJ7J79kzWiqO1fHgFA6ZR8eEls commented 3 years ago

备份了一份最后一个版本的 Super_preloaderPlus_one_改_6.15.9 https://189.ly93.cc/#QNji2ymIRRbi

Hwongjh commented 3 years ago

备份了一份最后一个版本的 Super_preloaderPlus_one_改_6.15.9

怎么下

decembre commented 3 years ago

I hope you find a solution about this great script with GreasyFork!

markwu commented 3 years ago

不需要備份,直接從這裡下載就好了。

https://machsix.github.io/Super-preloader/Super_preloaderPlus_one_New.user.js

gotoplaycode commented 3 years ago

真是,提示我升级两次,说前后代码差异过大要我手动升级,我前一次没管。第二次手贱点了升级就不能用了。一看代码都没了,我晕。

mS0gxokXEsg5ysJ7J79kzWiqO1fHgFA6ZR8eEls commented 3 years ago

不需要備份,直接從這裡下載就好了。

https://machsix.github.io/Super-preloader/Super_preloaderPlus_one_New.user.js

太棒了 MK

Hwongjh commented 3 years ago

It seems that Greasy Fork has automatically removed all scripts with minified code, several of my scripts have been removed as well without any advance warning.

I hope they'll revert this and handle this in a better way in the future, otherwise I'm done with Greasy Fork, this is no way to treat your users...

With regards to installing it, you can install it from here: https://machsix.github.io/Super-preloader/Super_preloaderPlus_one_New.user.js

无法下载

machsix commented 3 years ago

https://github.com/machsix/Super-preloader/issues/646