Carlpb Posted March 4, 2008 Report Share Posted March 4, 2008 Hello, I am looking for some help disabling or removing the Force Start feature from the right click menu. I know that it would require editing some script but I have already done a little to remove such buttons as rss and setting. Anything would help.Thanks much, CarlP.S. I am running utorrent 1.7.7 with webui v0.310 if it matters. Link to comment Share on other sites More sharing options...
Ultima Posted March 5, 2008 Report Share Posted March 5, 2008 You'll have to find and remove all instances of ContextMenu.add(["Force Start", ...]) from script.js, like:ContextMenu.add(["Force Start"]);ContextMenu.add(["Force Start","utWebUI.ForceStart()"]); Link to comment Share on other sites More sharing options...
Carlpb Posted March 5, 2008 Author Report Share Posted March 5, 2008 Thanks much Ultima, You are a great guy and have been so much help. I really appreciate all that you have done for me. Thank You Link to comment Share on other sites More sharing options...
Ultima Posted March 5, 2008 Report Share Posted March 5, 2008 lol, I'm hoping it actually helps, because I surely haven't tested it -- it was just a quick scan through the webui source files FWIW, anyone knowledgeable enough about how webUI works in the background would be able to get around your hiding the "Force Start" menu item quite trivially by accessing the right URLs. Link to comment Share on other sites More sharing options...
nazha Posted March 5, 2008 Report Share Posted March 5, 2008 Ok, I tried to remove the ContextMenu.add(["Force Start"]); and also "ContextMenu.add(["Force Start","utWebUI.ForceStart()"]);" i removed few of this (maybe 3-5) now i can't load the page and it is blank ..I open the scrips.js with notepad and edit and save again.I want to remove pause, stop, rss, setting, and right click details and property.Ultima can u give me the source code ? Link to comment Share on other sites More sharing options...
GTHK Posted March 5, 2008 Report Share Posted March 5, 2008 For future reference, use notepads replace function to "replace all" with nothing .Modified script.js for lazy people . Force Start is removed. I don't know how to remove the pause and stop buttons. Link to comment Share on other sites More sharing options...
dnxz Posted August 27, 2010 Report Share Posted August 27, 2010 You'll have to find and remove all instances of ContextMenu.add(["Force Start", ...]) from script.js, like:ContextMenu.add(["Force Start"]);ContextMenu.add(["Force Start","utWebUI.ForceStart()"]);script.js not found in webui v0.371i need to remove in webui v0.371thx. Link to comment Share on other sites More sharing options...
Ultima Posted August 28, 2010 Report Share Posted August 28, 2010 The above tip was for WebUI v0.310, which is years old. WebUI v0.371 is rather different.You'll find the relevant code in webui.js. If you're looking at the webui.zip with the GZIPed source files, then you'll want to remove j.forcestart,from the code. If you're looking at the uncompressed source file, then you'll want to removemenuItemsMap["forcestart"] , Link to comment Share on other sites More sharing options...
Lord Alderaan Posted August 30, 2010 Report Share Posted August 30, 2010 FYIDo note that is not safe. People can still use direct commands or some of the community projects here to circumvent whatever you change in the webui.zip.You could try the webui shell which does securely disable it but it is complicated to setup and might be overkill for your situation.See: http://forum.utorrent.com/viewtopic.php?id=46830 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.