Last active
January 26, 2023 21:06
-
-
Save QuiltMeow/12c5770656f2390fe1441b19f0b634e9 to your computer and use it in GitHub Desktop.
使用者腳本
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
// ==UserScript== | |
// @name APK.TW 自動簽到 | |
// @namespace https://www.quilt.idv.tw/ | |
// @version 0.1 | |
// @description APK.TW 自動簽到 | |
// @author 棉被 | |
// @match https://apk.tw/* | |
// ==/UserScript== | |
let element = document.getElementById("my_amupper"); | |
if (element !== null) { | |
element.click(); | |
} |
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
// ==UserScript== | |
// @name Youtube 自動繼續播放 | |
// @namespace https://www.quilt.idv.tw/ | |
// @version 0.1 | |
// @description 影片暫停時,自動點選繼續觀賞 | |
// @author 棉被 | |
// @match https://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== | |
setInterval(function() { | |
"use strict"; | |
let element = document.getElementsByClassName("line-text style-scope yt-confirm-dialog-renderer"); | |
let length = element.length; | |
if (length >= 1) { | |
for (let i = 0; i < length; ++i) { | |
if (element[i].innerText == "影片已暫停,要繼續觀賞嗎?") { | |
element[i].parentNode.parentNode.parentNode.querySelector("#confirm-button").click(); | |
} | |
} | |
} | |
}, 10)(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment