how to force (and kill) all javascript on demand ?

Discussion of features in Seamonkey
Post Reply
Michael REMY
Posts: 323
Joined: December 19th, 2009, 2:27 am

how to force (and kill) all javascript on demand ?

Post by Michael REMY »

hi,

sometimes, while i have many pages opened in many tabs, one of them go to wrong because it's contains bas javascript , often "infinite loop" !
even if i do "strop script" on the dialog box, it's not stop !
and seamonkey memory go wrong (from 200MB to more than 5GB....and more)
to stop than, i have to kill seamonkey (by task manager), but i lost all my current download in the download manager.

so, is there a way to stop javascript without kill seamonkey ?

i'd liek the same tips like the way to kill flash bas activities which works very well :

Code: Select all

C:\Windows\System32\taskkill.exe /F /IM plugin-container.exe


i searched in task manager the line for javascript event, but there is no such line.

shall you help me please ?
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: how to force (and kill) all javascript on demand ?

Post by trolly »

JS is executed in the browser so there is no such thing like taskkill.
Better to disable JS altogether and enable it only when needed.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
Michael REMY
Posts: 323
Joined: December 19th, 2009, 2:27 am

Re: how to force (and kill) all javascript on demand ?

Post by Michael REMY »

when all is frozen because of javascript i can do nothing.
but i can open another windows instance of seamonkey (so there are two seamonkey in task constrol).
it would be good the newer Seamonkey instance can detect the bad one, and offering options & actions on it to re-get control on it.
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: how to force (and kill) all javascript on demand ?

Post by trolly »

To my knowledge something like this is not available.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: how to force (and kill) all javascript on demand ?

Post by therube »

> when all is frozen ... i can do nothing

That about sums it up, AFAIK, & it stinks.
But that's why you make backups ;-).
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
Tialon
Posts: 34
Joined: May 18th, 2014, 8:10 pm
Location: Oregon, USA

Re: how to force (and kill) all javascript on demand ?

Post by Tialon »

Michael REMY, I find the extension QuickJava to be helpful. I'm not sure that it kills things in mid-stream -- or at least, I have never used it for that -- but it does give a quick, easy to way to enable or disable Java, JavaScript, Flash, Silverlight, cookies, image loading, and animations, with just the click of a button.
Michael REMY
Posts: 323
Joined: December 19th, 2009, 2:27 am

Re: how to force (and kill) all javascript on demand ?

Post by Michael REMY »

trolly wrote:To my knowledge something like this is not available.


AS a experienced developer i am, i can certify this possible in windows programming (c,cC#,vb, surely J), linux too !
Programer have the possibility to get the cron/fork/instance of everything running on a computer.
Even on windows and linux, you can require the simple list of running process and act on it.

i don't know the natural language use to compile Seamonkey, if i knew it, i 'll find the sample example of that snippet coding
User avatar
trolly
Moderator
Posts: 39851
Joined: August 22nd, 2005, 7:25 am

Re: how to force (and kill) all javascript on demand ?

Post by trolly »

I said "not available", not "impossible". After 40 years of programming I do know that it is possible but depends on too much details to make any guess.
Seamonkey is - to my knowledge - programmed in C resp. C++.
Think for yourself. Otherwise you have to believe what other people tell you.
A society based on individualism is an oxymoron. || Freedom is at first the freedom to starve.
Constitution says: One man, one vote. Supreme court says: One dollar, one vote.
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: how to force (and kill) all javascript on demand ?

Post by therube »

Perhaps a "debug" build, whatever that is or whatever that could do?
Saw yesterday some bug about a (FF) "task manager" (perhaps more so to display stats on individual tabs).

Altap Salamander includes a "task list" feature allowing one instance of the program to see, kill, "break" other instances of the program.

Image
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
Post Reply