Try these:
Code: Select all
var element = document.getElementById("xpunge_multi_disable_menuitem");
xpunge_mu_doMenuActionCall(element);
Code: Select all
xpunge_doMultiple();
http://addons.thunderbird.net/thunderbird/addon/1279
Code: Select all
var element = document.getElementById("xpunge_multi_disable_menuitem");
xpunge_mu_doMenuActionCall(element);
Code: Select all
xpunge_doMultiple();
Code: Select all
xpunge_doMultiple();
Code: Select all
<menuitem id="xpunge_multi_disable_menuitem"
label="&xpunge.menu.multi.call.label;"
oncommand="xpunge_mu_doMenuActionCall(this)"/>
Code: Select all
function xpunge_mu_doMenuActionCall(elem) {
xpunge_doMultiple();
}
Code: Select all
var prefBranch = Components.classes["@mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefBranch);
var pref = "gfx.font_rendering.cleartype_params.cleartype_level";
var value = prefBranch.getIntPref(pref);
if (value === -1) prefBranch.setIntPref(pref, 0);
else prefBranch.setIntPref(pref, -1);
Code: Select all
(function() {
'use strict';
var prefBranch = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
var pref = "gfx.font_rendering.cleartype_params.cleartype_level";
prefBranch.setIntPref(pref, 0);
})();
Code: Select all
font-smooth: never;
-webkit-font-smoothing : none;
Code: Select all
(function () {
"use strict";
var style = document.createElement("style");
style.type = "text/css";
style.textContent = [
"* { font-smooth: never !important; }",
"* { -webkit-font-smoothing: none !important; }",
].join("\n");
if (document.head) {
document.head.appendChild(style);
} else {
document.documentElement.appendChild(style);
}
})();
Code: Select all
$(function() {
if ($("#thre>table:has(td.rtd>a>img)").length > 0) {
return $("#hdp>.hml:last-of-type").after($("<span>", {
"class": "hml"
}).append($("<a>", {
text: "hide images",
href: "javascript:void(0);",
on: {
click: function() {
if ($("#thre>table:not(:has(td.rtd>a>img)):hidden").length === 0) {
$("#thre>table:not(:has(td.rtd>a>img))").css("display", "none");
return $(this).text("original look");
} else {
$("#thre>table:not(:has(td.rtd>a>img)):hidden").css("display", "");
return $(this).text("hide images");
}
}
}
})));
}
});
Code: Select all
noimg_del_f = function() {
$("table.noimgtable").each(function(){
if( !$(this).hasClass("deleted") ){
$(this).css("display", dispdel_b?"none":"block");
}
});
$("button#noimgbtn").text(dispdel_b?"show all":"images only")
dispdel_b = !dispdel_b;
}
$("span").each(function(idx,elem){
if(idx == 0){
$("<button id='noimgbtn' onclick='noimg_del_f()' >images only</button>").insertAfter(this);
}
});