From: SourceForge.net <no...@so...> - 2009-06-23 16:16:43
|
Feature Requests item #896791, was opened at 2004-02-13 22:16 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=361118&aid=896791&group_id=11118 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: funct: content modification Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: disable java script action Initial Comment: same as the Opera browser does for both java and java script the purpose would be that this could then be enacted on specifc sites from within the user action file my reason - washingpost.com uses a java script to auto-refresh instead of a tag ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2009-06-23 16:16 Message: sorry. I forgot "+". <script(?:(?!/script).)+googleAD(?:(?!/script).)+<\/script> ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2009-06-23 16:13 Message: how about this one. <script(?:(?!/script).)googleAD(?:(?!/script).)<\/script> It is usefull but sometimes privoxy down. ---------------------------------------------------------------------- Comment By: O.S. (olaf) Date: 2004-08-08 15:49 Message: Logged In: YES user_id=11209 I did something like this in my personal privoxy config: file /etc/privoxy/default.filter - I put these lines at the bottom of the file: (I was a bit more rude than mdc34hdn, leaving no notes etc. Could this find its way in a future version?) ################################################################################# # # js-all: Completely block JavaScript, put noscript alternatives in effect # ################################################################################# FILTER: js-all Block JavaScript completely, put noscript alternatives in effect # Get rid of all JavaScript # and set the <noscript> alternatives as defaults # this avoids a lot of nasty ad tricks # NOTE: event handlers like onClick, onClose are not affected # s|(<script.*)(.*</script>)||Usgi s|(<noscript\b[^>]*>)(.*)(</noscript\b.*>)|$2|Usgi ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2004-06-30 10:48 Message: Logged In: NO I would also like to have a "remove all javascript" filter. E.g. for sites that use extensive background animation effects. Another purpose is usability testing of websites: do they work without Java Script? I'd rather change these settings in Privoxy than in the browser. ---------------------------------------------------------------------- Comment By: Stabilized (mdc34hdn) Date: 2004-04-24 20:47 Message: Logged In: YES user_id=1028431 heh I didn't realise, how do you enter in code here so that it remains code? The s/[<|<] is supposed to be s/[ ampersand lt;|<] can I escape it I wonder s/[\<|<] anyway the ampersand lt; is something new I added because the cunning little rats have been using that as a way of dodging content filtering. So if your popups start coming back it's probably because they're playing dirty... ---------------------------------------------------------------------- Comment By: Stabilized (mdc34hdn) Date: 2004-04-24 20:38 Message: Logged In: YES user_id=1028431 Hi There, If you dissable javascript entirely on washingpost.com the site breaks, so you would be best off blocking the offending media.washingtonpost.com/wp- srv/homepagessi/autorefresh.js file on its own. If you would still like to add javascript filtering, I've been working on something. This is part of a filter series called "tags-tagname". This is work in progress mind you, but it seems to do the trick where needed. FILTER: tags-javascript Removes JS HTML tags and dissabling all JS functionality # http://www.w3.org/TR/REC-html40/interact/scripts.html s/[<|<]script.*javascript.*<\/script>/<!-- Javascript Removed by Privoxy -->/sigU s/[<|<]noscript.*<\/noscript>/<!-- Javascript Removed by Privoxy -->/sigU If you would like to be ruthless use the following instead which will remove all script tags. s/[<|<]script.*<\/script>/<!-- Script Removed by Privoxy -- >/sigU To install, copy the lines of code into default.filter and the new filter type tags-javascript will appear in the actions settings. Hope this helps. Comments welcome. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=361118&aid=896791&group_id=11118 |