yes ,the same problem occurs
Beiträge von pleassssse
-
-
goDoCommand('cmd_scrollTop');
goDoCommand("cmd_scrollBottom");If the tab is opened in the background, these two commands may not take effect and you need to select the text to take effect. Why this happened
I have tried both the zip file and alice0775's two, and both have the same problem
userChrome.js/137/MouseGestures2_e10s.uc.js at master · alice0775/userChrome.jsContribute to alice0775/userChrome.js development by creating an account on GitHub.github.com -
Hi pleassssse
I am not sure, is this Script used to change the new Tab url?
If yes, here another version:Code
Alles anzeigen// ==UserScript== // @name NewTabUrl.uc.js // @namespace https://egg.5ch.net/test/read.cgi/software/1710343177/ // @description NewTabUrl // @include main // @author Mozilla Firefox // @compatibility 126+ // @version 2024/05/27 22:00 // ==/UserScript== (function() { let func = BrowserCommands.openTab.toString(); func = func.replace( 'url ??= BROWSER_NEW_TAB_URL;', 'url ??= "https://www.camp-firefox.de/forum";' //change url to your needs ); BrowserCommands.openTab = new Function( func.match(/\(([^)]*)/)[1], func.replace(/[^)]*/, '').replace(/[^{]*/, '').replace(/^{/, '').replace(/}\s*$/, '') ); })();
Mfg.
EndorThanks Does not work on about:newtab
But I changed it according to this script
(function() {
let func = BrowserCommands.home.toString();func = func.replace(
'gBrowser?.selectedTab.pinned || gBrowser?.selectedTab.hidden',
'gBrowser?.selectedTab.pinned || gBrowser?.selectedTab.hidden || "about:newtab"'
);BrowserCommands.home = new Function(
func.match(/\(([^)]*)/)[1],
func.replace(/^[^{]*{/, '').replace(/}\s*$/, '')
);
})(); -
ff128+ Home page cannot be opened in a new tab,Is there anyone who can help?
JavaScript(function() { try { eval("BrowserHome = " + BrowserCommands.home.toString() .replace(/switch \(where\) {/, "where = (gBrowser.currentURI.spec!="+"'about:blank' && gBrowser.currentURI.spec!="+"'about:newtab' || gBrowser.webProgress.isLoadingDocument"+") ? 'tab' : 'current'; [ DISCUZ_CODE_0 ]amp;")); }catch(e){} })();
-
firefox126hint: TypeError : reloadTab.getAttribute(...) is null
Please help me fix it
location.href.startsWith('chrome://browser/content/browser.x') && (() => {
const reloadTab = document.getElementById('context_reloadTab');
if(!reloadTab) return;
const menuitem = document.createXULElement('menuitem');
menuitem.setAttribute('accesskey', 'A');
menuitem.setAttribute('label', reloadTab.getAttribute('label')
.startsWith('Reload') ? 'Reload All Tabs' : '刷新所有标签页'
);
menuitem.addEventListener('command', () => {
gBrowser.visibleTabs.forEach(tab => {
try {
gBrowser.getBrowserForTab(tab).reload();
} catch (e) {}
});
});
reloadTab.after(menuitem);
})();