Opened 22 months ago

Last modified 19 months ago

#7141 closed change

Implement abort-current-inline-script snippet — at Version 3

Reported by: hfiguiere Assignee: hfiguiere
Priority: P2 Milestone:
Module: Core Keywords: circumvention
Cc: mjethani, arthur, sdixit Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

Description (last modified by hfiguiere)


Implement abort-current-inline-script snippet that will abort a script based on a function it calls and its text content.

While this looks like issue #6983, this snippet runs on Chrome as well.

What to change

  • Add the snippet in lib/content/snippets.js.

Note for testers

  • Create the following document:
<!DOCTYPE html>
 console.log("Hello from inline script!");
 console.log("There can only be one!");

And add the following filter$# abort-current-inline-script console.log Hello

(change the domain appropriately)

  • The console should only have "There can only be one!" printed.

Change History (3)

comment:1 Changed 22 months ago by hfiguiere

  • Owner set to hfiguiere
  • Review URL(s) modified (diff)

comment:2 Changed 22 months ago by hfiguiere

  • Status changed from new to reviewing

comment:3 Changed 22 months ago by hfiguiere

  • Description modified (diff)
Note: See TracTickets for help on using tickets.