Skip to content

Commit d58b82f

Browse files
committed
Update userscripts
1 parent 234438b commit d58b82f

File tree

3 files changed

+39
-4
lines changed

3 files changed

+39
-4
lines changed

firefox/userscripts/alison_auto_starter.user.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// ==UserScript==
2-
// @name alison.com auto starter
2+
// @name The alison.com auto starter
33
// @namespace http://tampermonkey.net/
44
// @version 1.0
55
// @description Auto click "Start topic" on alison.com
6-
// @match https://alison.com/topic/learn/*
76
// @author lainiwa
7+
// @match https://alison.com/topic/learn/*
8+
// @icon https://www.google.com/s2/favicons?sz=64&domain=alison.com
89
// @grant none
910
// ==/UserScript==
1011

firefox/userscripts/atomatic_chatgpt_retry.user.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// ==UserScript==
22
// @name Atomatic ChatGPT Retry
33
// @namespace http://tampermonkey.net/
4-
// @version 0.1
5-
// @description try to take over the world!
4+
// @version 1.0
5+
// @description Automatic retry for ChatGPT
66
// @author lainiwa
77
// @match https://chat.openai.com/chat
88
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// ==UserScript==
2+
// @name AutoClick Disclaimer Button
3+
// @namespace http://tampermonkey.net/
4+
// @version 1.0
5+
// @description Auto click a disclaimer button
6+
// @author lainiwa
7+
// @match https://www.xvideos.com/*
8+
// @icon https://www.google.com/s2/favicons?sz=64&domain=xvideos.com
9+
// @grant none
10+
// ==/UserScript==
11+
12+
(function() {
13+
'use strict';
14+
15+
// Function to click the button
16+
var clickButton = function() {
17+
var button = document.querySelector('.disclaimer-enter-straightsShortSiteName');
18+
if(button){
19+
button.click();
20+
// Disconnect the observer after clicking the button
21+
observer.disconnect();
22+
}
23+
};
24+
25+
// Create an observer instance
26+
var observer = new MutationObserver(clickButton);
27+
28+
// Configuration of the observer
29+
var config = { childList: true, subtree: true };
30+
31+
// Pass in the target node, as well as the observer options
32+
observer.observe(document.body, config);
33+
34+
})();

0 commit comments

Comments
 (0)