twinkle
twinkle copied to clipboard
檢查R2的目標命名空間
Problem: https://w.wiki/3SoV https://w.wiki/3SoY 不防呆就犯蠢?
Proposal:
- 選取時使用
<div>紅字顯示警告 - 送出時使用
confirm()讓使用者確認是否繼續
Note: 討論一下具體方式,請先不要提交PR
@Xi-Plus personally tends to the second one, as many users including me, would ignore warning with no confirmation required
還有
3. 在可檢查目標命名空間的前提下,直接alert()並中止提刪
按目前的情況,似乎也可以直接匹配方針,控制顯不顯示r2的選項在窗口內。
產生視窗的時候不會檢查頁面內容,若要這樣做會有額外的API請求。
按照speedy現狀的話,參考r3,直接用alert()會比較符合設計理念,吧?