MozillaZine

[Ext] userChrome.js

Announce and Discuss the Latest Theme and Extension Releases.
pile0nades
 
Posts: 756
Joined: May 15th, 2005, 2:31 am

Post Posted February 14th, 2007, 8:37 pm

Greasemonkey Mod
Update of the GM Mod script that works with the new Greasemonkey version that includes editing a script by right click in the menu. The script sorts the scripts in the menu and in the manager, and makes the manager non-modal. Thanks to Zoolcar9 for the original code.

<a href="data:text/javascript;charset=utf-8;base64,LyotLS0tLS0tLS0tIEdyZWFzZW1vbmtleSBtb2RzIC0tLS0tLS0tLS0gKi8NCg0KKGZ1bmN0aW9uKCkgew0KICBpZih0eXBlb2YgR01fQnJvd3NlclVJICE9ICJvYmplY3QiKSByZXR1cm47DQoNCiAgLy9taW5pbWl6YWJsZSwgbm9uLW1vZGFsIFVzZXIgU2NyaXB0cyBNYW5hZ2VyIGRpYWxvZw0KICBHTV9Ccm93c2VyVUkubWFuYWdlTWVudUl0ZW1DbGlja2VkID0gZnVuY3Rpb24oYUV2ZW50KSB7DQogICAgICB3aW5kb3cub3BlbkRpYWxvZygiY2hyb21lOi8vZ3JlYXNlbW9ua2V5L2NvbnRlbnQvbWFuYWdlLnh1bCIsDQogICAgICAgICAgICAgICAgICAgICAgICAibWFuYWdlciIsDQogICAgICAgICAgICAgICAgICAgICAgICAicmVzaXphYmxlLCBjZW50ZXJzY3JlZW4sIG1vZGFsPW5vLCBkaWFsb2c9bm8iKTsNCiAgfQ0KDQoNCiAgLy9zb3J0cyBzY3JpcHRzIGxpc3Qgb24gR00gaWNvbiBjb250ZXh0IG1lbnUgYWxwaGFiZXRpY2FsbHkNCiAgZnVuY3Rpb24gR01fc2hvd1BvcHVwX3NvcnRlZChhRXZlbnQpIHsNCiAgICB2YXIgY29uZmlnID0gbmV3IENvbmZpZyhnZXRTY3JpcHRGaWxlKCJjb25maWcueG1sIikpOw0KICAgIGNvbmZpZy5sb2FkKCk7DQogICAgdmFyIHNvcnRlZFNjcmlwdHMgPSBjb25maWcuc2NyaXB0cy5zbGljZSgwL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gICB2YXIgbGlzdGl0ZW0gPSBhV2luZG93LmRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImxpc3RpdGVtIik7DQogICAgICAgICAgbGlzdGl0ZW0uc2V0QXR0cmlidXRlKCJsYWJlbCIsIHNjcmlwdC5uYW1lKTsNCiAgICAgICAgICBsaXN0aXRlbS5zZXRBdHRyaWJ1dGUoImNyb3AiLCAiZW5kIik7DQogICAgICAgICAgbGlzdGl0ZW0uc2NyaXB0ID0gc2NyaXB0Ow0KICAgICAgICAgIGlmICghc2NyaXB0LmVuYWJsZWQpIHsNCiAgICAgICAgICAgIGxpc3RpdGVtLnN0eWxlLmNvbG9yID0gJ2dyYXknOw0KICAgICAgICAgIH0NCiAgICAgICAgICBhV2luZG93Lmxpc3Rib3guYXBwZW5kQ2hpbGQobGlzdGl0ZW0pOw0KICAgICAgICB9DQogICAgICB9DQogICAgYVdpbmRvdy5wb3B1bGF0ZUNob29zZXIgPSBwb3B1bGF0ZUNob29zZXJfc29ydGVkOw0KICAgIH0NCiAgKTsNCg0KfSkoKTsNCg%3D%3D">gmmod.uc.js</a>
Linkify bug numbers - test: bug 258287

Ria

User avatar
 
Posts: 3550
Joined: March 21st, 2004, 3:25 am
Location: Netherlands

Post Posted February 17th, 2007, 11:00 am

Would be great if someone had a script for the new global History menu in the latest trunk build. Now there are 10 history items in it by default, and I would like to change that to 30 items. I can change this in browser.xul but then I need to change it in every new build.
Code: Select all
                         type="places"
                         onpopupshowing="HistoryMenu.onPoupShowing(this);"
                         place="place:&amp;beginTime=-2592000000000&amp;beginTimeRef=1&amp;
endTime=7200000000&amp;endTimeRef=2&amp;type=1&amp;sort=4&amp;maxResults=10">


For some reason I can't submit the first line.

pile0nades
 
Posts: 756
Joined: May 15th, 2005, 2:31 am

Post Posted February 18th, 2007, 2:56 am

Code: Select all
var gopopup = document.getElementById("goPopup");
gopopup.setAttribute("place", gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30"));


Does this work?
Linkify bug numbers - test: bug 258287

Ria

User avatar
 
Posts: 3550
Joined: March 21st, 2004, 3:25 am
Location: Netherlands

Post Posted February 18th, 2007, 4:15 am

pile0nades wrote:
Code: Select all
var gopopup = document.getElementById("goPopup");
gopopup.setAttribute("place", gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30"));


Does this work?

Alas, does not work. I see no errors either.

old nicholas.alipaz
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 19th, 2007, 5:35 am

Ria wrote:
pile0nades wrote:
Code: Select all
var gopopup = document.getElementById("goPopup");
gopopup.setAttribute("place", gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30"));


Does this work?

Alas, does not work. I see no errors either.

It looks as though that code is missing some quotes...

Code: Select all
var gopopup = document.getElementById("goPopup");
gopopup.setAttribute("place", "gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30")");

However, I could be wrong. Good luck and sorry if this doesn't fix it.

Ria

User avatar
 
Posts: 3550
Joined: March 21st, 2004, 3:25 am
Location: Netherlands

Post Posted February 19th, 2007, 6:58 am

m435tr0d wrote:
Ria wrote:
pile0nades wrote:
Code: Select all
var gopopup = document.getElementById("goPopup");
gopopup.setAttribute("place", gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30"));


Does this work?

Alas, does not work. I see no errors either.

It looks as though that code is missing some quotes...

Code: Select all
var gopopup = document.getElementById("goPopup");
gopopup.setAttribute("place", "gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30")");

However, I could be wrong. Good luck and sorry if this doesn't fix it.

No sorry at all! Thanks for the effort, but sadly it still doesn't work.
I'm afraid trunk builds are not frequently used, so the code can't be interesting for most of the people. It only takes half a minute to change 10 to 30 in every trunk build, but if someone has an idea for userChrome.js; it would be marvelous.

norix

User avatar
 
Posts: 14
Joined: May 6th, 2005, 10:16 am
Location: Japan

Post Posted February 19th, 2007, 8:06 am

I use this one.
Code: Select all
(function(){
  var gopopup = document.getElementById("goPopup");
  gopopup.place = gopopup.place.replace(/maxResults=10/, 'maxResults=30')
})();

pile0nades
 
Posts: 756
Joined: May 15th, 2005, 2:31 am

Post Posted February 19th, 2007, 5:42 pm

m435tr0d wrote:
Ria wrote:
pile0nades wrote:
Code: Select all
var gopopup = document.getElementById("goPopup");
gopopup.setAttribute("place", gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30"));


Does this work?

Alas, does not work. I see no errors either.

It looks as though that code is missing some quotes...

Code: Select all
var gopopup = document.getElementById("goPopup");
gopopup.setAttribute("place", "gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30")");

However, I could be wrong. Good luck and sorry if this doesn't fix it.


Actually it's not. That changes version jut sets the place attribute to the string "gopopup.getAttribute("place").replace(/maxResults=10/, "maxResults=30")". It's supposed to dynamically replace 10 with 30 and set the place attribute to the replaced version. Apparently it changes the attribute correctly but the menu doesn't reflect the change.
Linkify bug numbers - test: bug 258287

pile0nades
 
Posts: 756
Joined: May 15th, 2005, 2:31 am

Post Posted February 19th, 2007, 5:45 pm

norix wrote:I use this one.
Code: Select all
(function(){
  var gopopup = document.getElementById("goPopup");
  gopopup.place = gopopup.place.replace(/maxResults=10/, 'maxResults=30')
})();


I just tried that and it works.
Linkify bug numbers - test: bug 258287

Swami
 
Posts: 4221
Joined: September 25th, 2004, 11:32 pm

Post Posted February 19th, 2007, 8:03 pm

pile0nades wrote:
norix wrote:I use this one.
Code: Select all
(function(){
  var gopopup = document.getElementById("goPopup");
  gopopup.place = gopopup.place.replace(/maxResults=10/, 'maxResults=30')
})();


I just tried that and it works.


Hmm, I've been looking for for a way to do that with userChrome.js in the latest trunk, sadly that doesn't work for me.

Miccovin
 
Posts: 51
Joined: February 9th, 2007, 12:44 am

Post Posted February 19th, 2007, 8:52 pm

pile0nades wrote:Greasemonkey Mod
Update of the GM Mod script that works with the new Greasemonkey version that includes editing a script by right click in the menu. The script sorts the scripts in the menu and in the manager, and makes the manager non-modal. Thanks to Zoolcar9 for the original code.

<a href="data:text/javascript;charset=utf-8;base64,LyotL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dGl0ZW0uc2NyaXB0ID0gc2NyaXB0Ow0KICAgICAgICAgIGlmICghc2NyaXB0LmVuYWJsZWQpIHsNCiAgICAgICAgICAgIGxpc3RpdGVtLnN0eWxlLmNvbG9yID0gJ2dyYXknOw0KICAgICAgICAgIH0NCiAgICAgICAgICBhV2luZG93Lmxpc3Rib3guYXBwZW5kQ2hpbGQobGlzdGl0ZW0pOw0KICAgICAgICB9DQogICAgICB9DQogICAgYVdpbmRvdy5wb3B1bGF0ZUNob29zZXIgPSBwb3B1bGF0ZUNob29zZXJfc29ydGVkOw0KICAgIH0NCiAgKTsNCg0KfSkoKTsNCg%3D%3D">gmmod.uc.js</a>

the script doesn´t work at my Fox 2.0.0.1 and i know about two other people, where it does not work, too. You´re sure, that there is no fault?

Ria

User avatar
 
Posts: 3550
Joined: March 21st, 2004, 3:25 am
Location: Netherlands

Post Posted February 20th, 2007, 12:46 am

norix wrote:I use this one.
Code: Select all
(function(){
  var gopopup = document.getElementById("goPopup");
  gopopup.place = gopopup.place.replace(/maxResults=10/, 'maxResults=30')
})();

Works indeed, thanks!

pile0nades
 
Posts: 756
Joined: May 15th, 2005, 2:31 am

Post Posted February 20th, 2007, 6:00 am

Miccovin wrote:
pile0nades wrote:Greasemonkey Mod
Update of the GM Mod script that works with the new Greasemonkey version that includes editing a script by right click in the menu. The script sorts the scripts in the menu and in the manager, and makes the manager non-modal. Thanks to Zoolcar9 for the original code.

<a href="data:text/javascript;charset=utf-8;base64,LyotLS0tLS0tLS0tIEdyZWFzZW1vbmtleSBtb2RzIC0tLS0tLS0tLS0gKi8NCg0KKGZ1bmN0aW9uKCkgew0KICBpZih0eXBlb2YgR01fQnJvd3NlclVJICE9ICJvYmplY3QiKSByZXR1cm47DQoNCiAgLy9taW5pbWl6YWJsZSwgbm9uLW1vZGFsIFVzZXIgU2NyaXB0cyBNYW5hZ2VyIGRpYWxvZw0KICBHTV9Ccm93c2VyVUkubWFuYWdlTWVudUl0ZW1DbGlja2VkID0gZnVuY3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wb3B1bGF0ZUNob29zZXJfc29ydGVkOw0KICAgIH0NCiAgKTsNCg0KfSkoKTsNCg%3D%3D">gmmod.uc.js</a>

the script doesn´t work at my Fox 2.0.0.1 and i know about two other people, where it does not work, too. You´re sure, that there is no fault?


What errors do you get in the Error Console?
Linkify bug numbers - test: bug 258287

Coce
 
Posts: 16
Joined: December 31st, 2006, 9:03 am
Location: Germany

Post Posted February 20th, 2007, 8:38 am

Miccovin wrote:
pile0nades wrote:Greasemonkey Mod
Update of the GM Mod script that works with the new Greasemonkey version that includes editing a script by right click in the menu. The script sorts the scripts in the menu and in the manager, and makes the manager non-modal. Thanks to Zoolcar9 for the original code.

<a href="data:text/javascript;charset=utf-8;base64,LyotLS0tLS0tLS0tIEdyZWFzZW1vbmtleSBtb2RzIC0tLS0tLS0tLS0gKi8NCg0KKGZ1bmN0aW9uKCkgew0KICBpZih0eXBlb2YgR01fQnJvd3NlclVJICE9ICJvYmplY3QiKSByZXR1cm47DQoNCiAgLy9taW5pbWl6YWJsZSwgbm9uLW1vZGFsIFVzZXIgU2NyaXB0cyBNYW5hZ2VyIGRpYWxvZw0KICBHTV9Ccm93c2VyVUkubWFuYWdlTWVudUl0ZW1DbGlja2VkID0gZnVuY3Rpb24oYUV2ZW50KSB7DQogICAgICB3aW5kb3cub3BlbkRpYWxvZygiY2hyb21lOi8vZ3JlYXNlbW9ua2V5L2NvbnRlbnQvbWFuYWdlLnh1bCIsDQogICAgICAgICAgICAgICAgICAgICAgICAibWFuYWdlciIsDQogICAgICAgICAgICAgICAgICAgICAgICAicmVzaXphYmxlLCBjZW50ZXJzY3JlZW4sIG1vZGFsPW5vLCBkaWFsb2c9bm8iKTsNCiAgfQ0KDQoNCiAgLy9zb3J0cyBzY3JpcHRzIGxpc3Qgb24gR00gaWNvbiBjb250ZXh0IG1lbnUgYWxwaGFiZXRpY2FsbHkNCiAgZnVuY3Rpb24gR01fc2hvd1BvcHVwX3NvcnRlZChhRXZlbnQpIHsNCiAgICB2YXIg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HJldHVybiAwOw0KICAgICAgICAgIH0NCiAgICAgICAgKQ0KICAgICAgICBmb3IgKHZhciBpID0gMCwgc2NyaXB0ID0gbnVsbDsgKHNjcmlwdCA9IHNvcnRlZFNjcmlwdHNbaV0pOyBpKyspIHsNCiAgICAgICAgICB2YXIgbGlzdGl0ZW0gPSBhV2luZG93LmRvY3VtZW50LmNyZWF0ZUVsZW1lbnQoImxpc3RpdGVtIik7DQogICAgICAgICAgbGlzdGl0ZW0uc2V0QXR0cmlidXRlKCJsYWJlbCIsIHNjcmlwdC5uYW1lKTsNCiAgICAgICAgICBsaXN0aXRlbS5zZXRBdHRyaWJ1dGUoImNyb3AiLCAiZW5kIik7DQogICAgICAgICAgbGlzdGl0ZW0uc2NyaXB0ID0gc2NyaXB0Ow0KICAgICAgICAgIGlmICghc2NyaXB0LmVuYWJsZWQpIHsNCiAgICAgICAgICAgIGxpc3RpdGVtLnN0eWxlLmNvbG9yID0gJ2dyYXknOw0KICAgICAgICAgIH0NCiAgICAgICAgICBhV2luZG93Lmxpc3Rib3guYXBwZW5kQ2hpbGQobGlzdGl0ZW0pOw0KICAgICAgICB9DQogICAgICB9DQogICAgYVdpbmRvdy5wb3B1bGF0ZUNob29zZXIgPSBwb3B1bGF0ZUNob29zZXJfc29ydGVkOw0KICAgIH0NCiAgKTsNCg0KfSkoKTsNCg%3D%3D">gmmod.uc.js</a>

the script doesn´t work at my Fox 2.0.0.1 and i know about two other people, where it does not work, too. You´re sure, that there is no fault?

If I place this code at the end of my userChrome.js it works, otherwise the whole userChrome.js codes seem to be deactivated. :?
The sorting in the script manager doesn't work anyway.
Regards, Coce

Miccovin
 
Posts: 51
Joined: February 9th, 2007, 12:44 am

Post Posted February 20th, 2007, 9:51 am

i agree to Coces observations, but the sorting works here if the script is at the end of the userchrome.js.

It looks like that there is a problem with "window hook", my error console says:
"Window hook has no properties" at this line of the script:
Code: Select all
  /* insert WindowHook snippet here */
  WindowHook.register("chrome://greasemonkey/content/manage.xul",


EDIT: i have Greasemonkey 0.6.7.20070131.0.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 0 guests