🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2025/12/24 23:11:51
🔄 下次更新时间:2025/12/25 00:11:51
手动刷新缓存

Resizeable Text Fields

Based on Resizeable Textarea 0.1 (https://addons.mozilla.org/de/firefox/addon/3818), original coding by Raik Jürgens. Added support for select lists and horizontal resizing of input fields by Florian Höch. Should now work on all page types (XML/XHTML/you-name-it).

< Valutazione su Resizeable Text Fields

Recensione: Bene - lo script funziona

§
Pubblicato: 24/07/2017

Problems with Content-Security-Policy "script-source: 'self'"

Using this script for several years now – but the 2014 version has issues on sites having script-src: 'self' in their CSP rules. Which is quite easy to fix, and I hope you integrate this with the script here:

Change line 60 to read

//resizeableTF.TF[k].addEventListener('mousemove', new Function('if (!resizeableTF.isresizing && resizeableTF.curTF_Nr !== ' + k + ') { resizeableTF.curTF_Nr = ' + k + '; resizeableTF.posdiv() }'), false);
resizeableTF.TF[k].addEventListener('mousemove', resizeableTF.mousemoved(k), false);

add before newdiv: function (w, h, id, nr, cu) {

mousemoved: function (k) {
    if (!resizeableTF.isresizing && resizeableTF.curTF_Nr !== k ) { resizeableTF.curTF_Nr = k; resizeableTF.posdiv() }
},

Done.

Pubblica risposta

Accedi per pubblicare una risposta.