Extension Releases/Support • Re: Bypass Cloudflare with Firefox Cookies
Pale Moon forum - Forum index [Unofficial]
April 11, 2026
The "startsWith" part was supposed to make it work for sub-pages too, but if you press More ("Show more details...") the original button re-appears in that sub-page anyway.
I've made a new version of the code for "change__bypass_cloudflare_with_firefox_cookies__addon_icon.uc.js" that changes the button image also on the page that opens after clicking "Show more details about this add-on".
I set the timeout for "setTimeout" back to 100 because it works fine for me, but if you notice any issues, you can increase this waiting time.
Below is a new code for the "change__bypass_cloudflare_with_firefox_cookies__addon_icon.uc.js" file:
CODE:
function get_Operating_System__change__bypass_cloudflare_with_firefox_cookies__addon_LOGO_icon() { var os = Services.appinfo.OS.toLowerCase();if (os.startsWith("win")) {return "Windows";} else if (os == "linux") {return "Linux";} else{return "";}}gBrowser.addProgressListener({ onLocationChange: function() {var page_URL = gBrowser.contentDocument.location.href;if(page_URL == "about:addons"){setTimeout(function() {var arr_addons = content.document.getElementsByClassName("addon addon-view");if(arr_addons){for(var i=0; i<arr_addons.length; i++){var addon = arr_addons[i];var addon_name = addon.getAttribute("name");if(addon_name == 'Bypass Cloudflare with "Backup Browser" Cookies'){var directoryService = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties);var ProfilesDir = directoryService.get("ProfD", Components.interfaces.nsIFile);var ProfilesDir_Path = ProfilesDir.path;var addon_LOGO_icon_PATH = "";var operating_system = get_Operating_System__change__bypass_cloudflare_with_firefox_cookies__addon_LOGO_icon();if(operating_system == "Windows"){ProfilesDir_Path = ProfilesDir_Path.replace(/\\/g,'/');addon_LOGO_icon_PATH = 'file:///' + ProfilesDir_Path + "/chrome/bypass_cloudflare_with_firefox_cookies_LOGO.png";} else if(operating_system == "Linux"){addon_LOGO_icon_PATH = 'file:///' + ProfilesDir_Path + "/chrome/bypass_cloudflare_with_firefox_cookies_LOGO.png";}addon._icon.src = addon_LOGO_icon_PATH;var detail_name = content.document.getElementById("detail-name");if(detail_name){if(detail_name.innerHTML == 'Bypass Cloudflare with "Backup Browser" Cookies'){var detail_icon = content.document.getElementById("detail-icon");if(detail_icon){detail_icon.src = addon_LOGO_icon_PATH;}}}}}}}, 100);}}});
Discussion in the ATmosphere