LogFAQs > #972766850

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, Database 11 ( 12.2022-11.2023 ), DB12, Clear
Topic List
Page List: 1
TopicIs there a way to configure my browser so that whenever I visit a certain page,
Yellow
04/11/23 4:36:13 AM
#6:


EclairReturns posted...
I am very glad that technology has failed me.

Thanks. It really helped a lot. That being said, it still seems to deactivate the search bar right after the script has focused on it.
I poked around and here's a Tampermonkey script that works. It only affects the main page, not the others, so if you want to change that you would probably change the parameters at the top.

setTimeout is JS's "wait" function. I pass a function as well as the value 800 to it, telling it to wait 800 milliseconds before executing the function. I've had it work as low as 500, so you could try that and see how it works out for you.

There's likely a better solution that looks into signs the page is fully loaded, but the issue was that something about the web page wasn't expecting the user to click on that box until the page had fully loaded.

// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://en.m.wiktionary.org/wiki/Wiktionary:Main_Page
// @icon https://www.google.com/s2/favicons?sz=64&domain=wiktionary.org
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Your code here...
setTimeout(() => {
document.getElementById("searchInput").click();
}, 800);
})();

Count_Drachma posted...
What's the appeal of Brave?
Blocks advertisers and tracking that doesn't benefit the end user mostly. You could call it just a straight upgrade from chrome, even if you don't notice any difference.

badjay posted...
Let's ask chat gpt.
I'm sorry, but I really hate shat gpt. That language model is nothing more to me than advanced plagiarism. And bad plagiarism at that.
... Copied to Clipboard!
Topic List
Page List: 1