[RESOLVED] Picking and choosing which code to block

Ask for help about NoScript, no registration needed to post
anontemp123

[RESOLVED] Picking and choosing which code to block

Post by anontemp123 »

I tried searching for the answer to my question but I can't figure out what terminology to use.

I want to block all Javascript on google.com except for the piece of code that places the cursor in the search box on the main http://www.google.com search page.

Is there a way to pick and choose which code on a page will be blocked?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Picking and choosing which code to block

Post by GµårÐïåñ »

anontemp123 wrote:I tried searching for the answer to my question but I can't figure out what terminology to use.

I want to block all Javascript on google.com except for the piece of code that places the cursor in the search box on the main http://www.google.com search page.

Is there a way to pick and choose which code on a page will be blocked?
Is there a way? Short answer, YES. However, it requires some expertise on your part, so depending on your level of ability to manipulate client side coding, it could be a NO. There is no per se, EASY way to do it. Its a slightly messy hack.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 6.1; rv:10.0.1) Gecko/20100101 Firefox/10.0.1
anontemp123

Re: Picking and choosing which code to block

Post by anontemp123 »

Could you point me in the right direction? I should be able to pick it up from there.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: Picking and choosing which code to block

Post by dhouwn »

Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20100101 Firefox/11.0
User avatar
GµårÐïåñ
Lieutenant Colonel
Posts: 3369
Joined: Fri Mar 20, 2009 5:19 am
Location: PST - USA
Contact:

Re: Picking and choosing which code to block

Post by GµårÐïåñ »

anontemp123 wrote:Could you point me in the right direction? I should be able to pick it up from there.
There is what dhouwn suggested, but that may not work to the ends that you are looking for. But you can take a look and see if it does what you want. Personally I would use a Greasemonkey script tempered well with an ABE rule. Both are options, your call and as I said comes down to how much you know, how much you are willing to do and what works best for you. I think personally too much trouble for a [searchbox].setfocus style function but to each their own. Good luck.
~.:[ Lï£ê ï§ å Lêmðñ åñÐ Ì Wåñ† M¥ Mðñê¥ ßå¢k ]:.~
________________ .: [ Major Mike's ] :. ________________
Mozilla/5.0 (Windows NT 6.1; rv:10.0.1) Gecko/20100101 Firefox/10.0.1
Post Reply