Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบเครือข่าย >> อินเทอร์เน็ต

เชี่ยวชาญ Firefox 57 และ NoScript 10: คู่มือฉบับสมบูรณ์ Edtion แรก

Note: มี useful updates ท้ายบทความ โปรดดู

Firefox 57 ออกแล้ว NoScript Security Suite 10 เวอร์ชัน WebExtension แรกของ addon ยอดนิยมและสำเร็จนี้ มาพร้อม changes และ frustrations เยอะ ถ้าคุณ surprised, taken aback หรือ confused โดย NoScript ทำงานหลัง 5.x series ผมจะพยายาม unravel fog ใน tutorial นี้

โปรดสังเกต first edition ของ guide นี้ - จะมี updates และ follow-ups เนื่องจาก NoScript จะเปลี่ยนและ improve inevitably ผมพยายามให้ simplest explanations และ hints เพื่อ journey ของคุณและผม pleasant ผมเชื่อ NoScript essential part ของ Web primary reason stick กับ Firefox และนี่เหตุผล compile howto ตามมา

NoScript ภาพรวม

New UI ต่างจาก 5.x series เลย Classic NoScript มี vertical hierarchy แต่ละ website listed แยก allow หรือ temporarily allow entries deeper system menu fine-grained control รวม whitelisting, specific element blocks และมากกว่า

NSS 10 มาพร้อม matrix-like grid ใกล้เคียง uMatrix extension (จะ cover แยก) Sites listed บรรทัดแยก มี 5 buttons ถัด domain names คลิก any one toggle specific scope สำหรับ domain นั้น และเห็น details

Scopes

Scopes ดังนี้:

Default - default site ไม่ covered ใน scope อื่น matched ไปนี้ eight element categories toggled on/off Default allow script, object, media, frame, fetch, other Font และ webgl ไม่ allow

โปรดสังเกต default คือ ALLOW scripts จริงๆ

นี่ major difference เทียบ NoScript 5.x สิ่งที่คุณควรและสามารถเปลี่ยน ได้ แสดงวิธีเร็วๆ โปรดอดทน

Trusted allow everything สำหรับ listed site

Untrusted ไม่อนุญาต element ใดๆ สำหรับ listed site

Custom category ที่สี่ toggle state ของ eight elements ใดๆ สำหรับ particular domain

Padlock symbol match rules ใน 4 scopes ก่อนหน้า either websites served through secure tunnel (SSL/TLS) หรือ any (HTTP) หมายถึงถ้าไป https:// vs https:// same domain ถ้ามี behavior อาจต่าง

มันทำงานยังไง?

ทำงาน completely opposite 5.x series นั่น permissions per-site ที่นี่ because different architectural format ของ data stored in backend permissions per scope และ sites included ในแต่ละ scope

NoScript 5.x - site, permissions

NoScript 10.x - scope, permissions, site, override permissions

Confusing เพราะถ้า change defaults สำหรับ particular site จะ change defaults สำหรับ ENTIRE scope broken by design ควร alter soon

Test โดยไป domain - เช่น dedoimedo.com ทำ custom rule allow scripts ไป site อื่น จะเรียนรู้ว่า same rules applied เพราะ edits affect entire scope

Temporarily allow

Remedy สำหรับ issue นี้ควรเป็น temporarily allow option ที่มีอยู่ Under Custom มี clock-like button เลือก toggle state สำหรับ eight elements คลิก button นี้ ควรทำให้ permissions temporary และ revert กลับ original เมื่อ close และ reopen browser

สังเกต clock icon ข้างข้อความ CUSTOM

Unfortunately ตอนนี้ temp-allow mode ไม่ทำงาน ไม่ว่าจะคลิก clock button ก่อน set permissions หรือ set แล้วค่อยกด browser restart changes กลายเป็น permanent สำหรับ entire custom scope เป็น bug ต้อง fix

Temporarily allow, option 2 (update)

Fellow ชื่อ Krusty แนะนำ model นี้: ใช้ TRUSTED scope แล้วคลิก clock icon เล็ก temporarily allow โดยไม่ mess กับ specific elements manually reload หรือ close overview window page reload auto ทำงาน 2/3 cases สำหรับผม temporary permissions หายหลัง restart browser progress ในทิศทางถูกต้อง ขอบคุณ Krusty

Options & JSON Configuration

เปิด options/preferences menu มี limited tweaks ถ้า migrated จาก 5.x ควรมี whitelisted sites ทั้งหมด UI allow toggle state แต่ไม่ delete เปลี่ยน default state ระหว่าง 4 scopes หรือ remove completely จาก list

Debug button ล่างสุด select เปิด small text editor edit JSON configuration NoScript ได้ เช่น:

{
"DEFAULT": {
"capabilities": [
"frame",
"other",
"fetch",
"media",
"object"
]
},
"TRUSTED": {
"capabilities": [
"script",
"object",
"media",
"frame",
"font",
"webgl",
"fetch",
"other"
]
},

ข้างต้น ผมลบ "script" line จาก DEFAULT scope ทำผ่าน UI ได้ เลือก domain ใดๆ untick script box จะ apply สำหรับ all websites marked DEFAULT scope option ไม่ intuitive รู้ Domain entries:

"sites": {
"trusted": [
"§:addons.mozilla.org",
"§:afx.ms",
"§:ajax.aspnetcdn.com",
"§:ajax.googleapis.com",
"§:bootstrapcdn.com",
"§:code.jquery.com",

ไม่อยาก trust บางอัน delete ได้ ดูด้านล่าง UNTRUSTED scope ไม่มี elements (capabilities) หรือ sites custom ก็ว่าง

Sanitized list of sites:

ทำงานกับ NoScript 10 & ข้อเสนอ

ตอนนี้ cumbersome มาก Toggling site states นานกว่า simple middle-click NoScript 5.x ควร reintroduce as feature เพิ่มเติม เนื่องจาก affect entire scopes ไม่ใช่แค่ sites permissions changes useless temp-allow ไม่ทำงาน

ได้ automatic reload websites แต่ overall flow less streamlined ผมเชื่อควรเปลี่ยนเมื่อ NoScript versions ใหม่ release Giorgio Maone ควร introduce multiple configuration files สำหรับแต่ละ scope และ keep configurations format:

{
"DOMAIN": {
"capabilities": [
"frame",
"other",
"fetch",
"media",
"object"
]
},

Whatever not matched associated with DEFAULT (whatever it is) Temp-allow skip domain names ใช้ new scope TEMP-ALLOW erased every browser restart (or manual change)

Aesthetic considerations UI ควร bigger text และ spacing ระหว่าง elements แต่ละ domain ควรมี give toggles - ระหว่าง existing scopes และ NEW scope temp allow ควรมี global button allow all Configuration of scopes ใน main options window

สรุป

NoScript 10 rushed too early เพื่อ meet Firefox Quantum release schedule ไม่รู้สึก complete product และ highlight mess ของ WebExtensions idea ผมมั่นใจ NoScript จะ evolve, change, improve และ match old behavior ใน function ถ้าไม่ใช่ look

สำคัญที่สุดตอนนี้: สามารถใช้ temporarily allow function สำหรับ all sites และไม่ affect scope settings ด้วย per-site tweaks JSON hierarchy ควร driven by smallest granularity component คือ domain ที่ visit นั่นแหละ first guide ถ้ามีคำถาม ถามมา ผมเพิ่มคำตอบ Updates และ news coming soon stay tuned 2nd edition และ whatever relevant

Update - November 23, 2017:

ก่อนเขียน second edition ผมคิด prudent เพิ่ม important updates หนึ่งวันหลังเผยแพร่ Giorgio Maone update NoScript extension looking much more streamlined และ efficient

New redesigned UI ยังคง 4 categories แตสำคัญได้ temporary allow button, ability revoke temporary permissions, และ separate icon เปิด settings นอกจาก extra click - NoScript 5.x temp-allow all via middle click extension icon - behavior largely same previous versions ยังมี fine nuances แตเป็น add-on ที่เรารัก care และต้องการให้ worth using Firefox Great development Stay tuned for more

Cheers.