-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// ==UserScript== | ||
// @name alison.com auto starter | ||
// @namespace http://tampermonkey.net/ | ||
// @version 1.0 | ||
// @description Auto click "Start topic" on alison.com | ||
// @match https://alison.com/topic/learn/* | ||
// @author lainiwa | ||
// @grant none | ||
// ==/UserScript== | ||
|
||
window.addEventListener('load', function() { | ||
let elem = document.getElementById("player_button_right"); | ||
elem.classList.add('ready'); | ||
elem.click() | ||
}, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// ==UserScript== | ||
// @name Atomatic ChatGPT Retry | ||
// @namespace http://tampermonkey.net/ | ||
// @version 0.1 | ||
// @description try to take over the world! | ||
// @author lainiwa | ||
// @match https://chat.openai.com/chat | ||
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com | ||
// @grant none | ||
// ==/UserScript== | ||
|
||
var intervalId = window.setInterval(function(){ | ||
|
||
let xpath = "//button[text()='Try again']"; | ||
let button = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; | ||
|
||
if ( | ||
button && ( | ||
document.body.innerText.includes("An error occurred. If this issue persists please contact us through our help center at help.openai.com.") && | ||
document.body.innerText.includes("NetworkError when attempting to fetch resource.") && | ||
) | ||
) { | ||
button.click(); | ||
} | ||
|
||
}, 1000); |