inpageedit-v2 icon indicating copy to clipboard operation
inpageedit-v2 copied to clipboard

问题

Open Corn-Pig opened this issue 1 year ago • 17 comments

请问这个插件支持哪些MediaWiki皮肤?

Corn-Pig avatar Nov 23 '24 02:11 Corn-Pig

IPE我记得无论哪个版本都是独立一个浮动按钮的,可以认为大部分情况下皮肤无关。

lakejason0 avatar Nov 23 '24 09:11 lakejason0

但是我使用在Miraheze的wiki安装插件似乎没有起到作用

Corn-Pig avatar Nov 23 '24 12:11 Corn-Pig

那,你启用本用户脚本的方式是?DevTools有没有报错?

lakejason0 avatar Nov 23 '24 13:11 lakejason0

首先,我复制了Minecraftwiki的代码(这固然不行) 然后,我使用了你给的导入代码 最后,我简单粗暴地复制了源代码

但是,似乎没有任何作用 我使用的MediaWiki公民皮肤,或者……jQuery需要单独在wiki中导入?

Corn-Pig avatar Nov 23 '24 13:11 Corn-Pig

与皮肤无关,Miraheze的安全策略禁止第三方JavaScript运行

dragon-fish avatar Nov 23 '24 13:11 dragon-fish

请问我有办法解决吗?

Corn-Pig avatar Nov 23 '24 13:11 Corn-Pig

有管理员权限的情况下将IPE编译后的版本加入小工具加载之类的?

lakejason0 avatar Nov 23 '24 13:11 lakejason0

有管理员权限的情况下将IPE编译后的版本加入小工具加载之类的?

有权限,wiki是我的。编译后的版本可以在哪里获取?

Corn-Pig avatar Nov 23 '24 13:11 Corn-Pig

表述有点问题 总之就是,IPE比较依赖外部加载资源所以感觉上要么可能得动很多代码然后编译成最小版本什么的

lakejason0 avatar Nov 23 '24 15:11 lakejason0

@lakejason0 @dragon-fish 但是我这种代码小白肯定做不到……Miraheze这么搞到底有什么意义啊!

Corn-Pig avatar Nov 24 '24 02:11 Corn-Pig

建议了解供应链投毒 多的就不说了,我觉得你也可以找一找看看有没有同类的别的脚本

lakejason0 avatar Nov 24 '24 03:11 lakejason0

https://issue-tracker.miraheze.org/T12919

是这样的,Miraheze同意将IPE列入他们的安全列表,但是需要IPE的所有的服务器(这是安全的,至少我觉得)。

请问我可以在哪里找到,或者说你们可以提供吗?

@lakejason0 @dragon-fish

Corn-Pig avatar Nov 26 '24 14:11 Corn-Pig

issue-tracker.miraheze.org/T12919

是这样的,Miraheze同意将IPE列入他们的安全列表,但是需要IPE的所有的服务器(这是安全的,至少我觉得)。

请问我可以在哪里找到,或者说你们可以提供吗?

@lakejason0 @dragon-fish

# main entry
https://cdn.jsdelivr.net/npm/mediawiki-inpageedit*
https://unpkg.com/mediawiki-inpageedit*
# plugins & i18n
https://ipe-plugins.js.org/*

# can be block, no side effects
https://analytics.ipe.wiki/* # for dev analytics, block it will only make some errors in the console
https://www.ipe.wiki/* # for update logs iframe, not so important

dragon-fish avatar Nov 26 '24 14:11 dragon-fish

Additional Reminder: IPE may not fully comply with GDPR standards. Although IPE does not store or use cookies, it does, in a certain sense, collect "personal information," which includes:

  • The URL of the current wiki site
  • The name of the current wiki site
  • The username of the current user

For more details, see the code at: https://github.com/inpageedit/inpageedit-v2/blob/fc5f3255c2a2302ba806d5a46686161f426415a9/src/module/_analytics.js

Additionally, IPE requires reading and writing some items in localStorage:

https://github.com/inpageedit/inpageedit-v2/blob/fc5f3255c2a2302ba806d5a46686161f426415a9/src/module/preference.js#L44

Although a clear reminder is provided when the user first installs the plugin, not all users may notice or pay attention to it.

Currently, due to limited personal resources, I am unable to provide any legal guarantees regarding privacy protection. You should understand that using IPE relies on your trust in me—the "developer." Therefore, I do not recommend enabling this plugin by default on any website that requires GDPR compliance. It is intended for personal use or should be offered as an optional feature.

dragon-fish avatar Nov 26 '24 14:11 dragon-fish

部分插件需要从 https://testingcf.jsdelivr.net 加载更多文件。

# CodeMirror 6 plugin
https://testingcf.jsdelivr.net/npm/@bhsd/codemirror-mediawiki*
https://testingcf.jsdelivr.net/npm/wikiparser-node*

bhsd-harry avatar Nov 28 '24 07:11 bhsd-harry

谢谢

Corn-Pig avatar Nov 30 '24 02:11 Corn-Pig

只是个人使用的话可以看看 #250 的解决方案。用一个可以禁用CSP的浏览器插件就可以(只要你不在意安全风险)。

lihaohong6 avatar Jan 07 '25 08:01 lihaohong6