Skip to content

Commit

Permalink
Update userscripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lainiwa committed Aug 15, 2023
1 parent 234438b commit d58b82f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
5 changes: 3 additions & 2 deletions firefox/userscripts/alison_auto_starter.user.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// ==UserScript==
// @name alison.com auto starter
// @name The 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
// @match https://alison.com/topic/learn/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=alison.com
// @grant none
// ==/UserScript==

Expand Down
4 changes: 2 additions & 2 deletions firefox/userscripts/atomatic_chatgpt_retry.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
// @name Atomatic ChatGPT Retry
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @version 1.0
// @description Automatic retry for ChatGPT
// @author lainiwa
// @match https://chat.openai.com/chat
// @icon https://www.google.com/s2/favicons?sz=64&domain=openai.com
Expand Down
34 changes: 34 additions & 0 deletions firefox/userscripts/xvideos_skip_disclaimer.user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// ==UserScript==
// @name AutoClick Disclaimer Button
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Auto click a disclaimer button
// @author lainiwa
// @match https://www.xvideos.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=xvideos.com
// @grant none
// ==/UserScript==

(function() {
'use strict';

// Function to click the button
var clickButton = function() {
var button = document.querySelector('.disclaimer-enter-straightsShortSiteName');
if(button){
button.click();
// Disconnect the observer after clicking the button
observer.disconnect();
}
};

// Create an observer instance
var observer = new MutationObserver(clickButton);

// Configuration of the observer
var config = { childList: true, subtree: true };

// Pass in the target node, as well as the observer options
observer.observe(document.body, config);

})();

0 comments on commit d58b82f

Please sign in to comment.