Skip to content

Commit b5926f7

Browse files
committed
- 修复:Gleam推特任务无法验证(#73)
- 优化:Gleam输入框内有文本时不替换(#73)
1 parent 5d08ed3 commit b5926f7

28 files changed

Lines changed: 9518 additions & 10112 deletions

.github/workflows/Release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
uses: softprops/action-gh-release@v1
2323
with:
2424
prerelease: false
25-
tag_name: v5.1.3
26-
name: 5.1.3
27-
body: '- 优化:恢复Violentmonkey支持(#20)'
25+
tag_name: v5.1.4
26+
name: 5.1.4
27+
body: "- 修复:Gleam推特任务无法验证(#73)\r\n- 优化:Gleam输入框内有文本时不替换(#73)"
2828
files: |-
2929
dist/auto-task.user.js
3030
dist/auto-task.min.user.js

dist/auto-task.all.user.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task.compatibility.all.user.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task.compatibility.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task.compatibility
33
// @namespace auto-task.compatibility
4-
// @version 5.1.3
4+
// @version 5.1.4
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -13796,7 +13796,7 @@ function _toPrimitive(t, r) {
1379613796
debug('处理任务验证');
1379713797
const taskInfo = $task.find('.user-links');
1379813798
taskInfo[0].click();
13799-
const aElements = $task.find('.expandable').find('a.btn');
13799+
const aElements = $task.find('.expandable').find('a.btn,a.twitter-button');
1380013800
if (aElements.length > 0) {
1380113801
debug('处理可点击元素', {
1380213802
count: aElements.length
@@ -13824,7 +13824,7 @@ function _toPrimitive(t, r) {
1382413824
(_unsafeWindow$$hookTi2 = unsafeWindow.$hookTimer) === null || _unsafeWindow$$hookTi2 === void 0 || _unsafeWindow$$hookTi2.setSpeed(1);
1382513825
const expandInfo = $task.find('.expandable');
1382613826
const [input] = expandInfo.find('input');
13827-
if (input) {
13827+
if (input && !input.value) {
1382813828
var _at;
1382913829
debug('处理输入框');
1383013830
const evt = new Event('input', {

dist/auto-task.min.all.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task.min.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/auto-task.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task
33
// @namespace auto-task
4-
// @version 5.1.3
4+
// @version 5.1.4
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -13412,7 +13412,7 @@ if (missingDependencies.length > 0) {
1341213412
debug('处理任务验证');
1341313413
const taskInfo = $task.find('.user-links');
1341413414
taskInfo[0].click();
13415-
const aElements = $task.find('.expandable').find('a.btn');
13415+
const aElements = $task.find('.expandable').find('a.btn,a.twitter-button');
1341613416
if (aElements.length > 0) {
1341713417
debug('处理可点击元素', {
1341813418
count: aElements.length
@@ -13440,7 +13440,7 @@ if (missingDependencies.length > 0) {
1344013440
unsafeWindow.$hookTimer?.setSpeed(1);
1344113441
const expandInfo = $task.find('.expandable');
1344213442
const [input] = expandInfo.find('input');
13443-
if (input) {
13443+
if (input && !input.value) {
1344413444
debug('处理输入框');
1344513445
const evt = new Event('input', {
1344613446
bubbles: true,

doc/docs/.vuepress/public/dist/auto-task.all.user.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/docs/.vuepress/public/dist/auto-task.compatibility.all.user.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/docs/.vuepress/public/dist/auto-task.compatibility.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name auto-task.compatibility
33
// @namespace auto-task.compatibility
4-
// @version 5.1.3
4+
// @version 5.1.4
55
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
66
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
77
// @author HCLonely
@@ -13796,7 +13796,7 @@ function _toPrimitive(t, r) {
1379613796
debug('处理任务验证');
1379713797
const taskInfo = $task.find('.user-links');
1379813798
taskInfo[0].click();
13799-
const aElements = $task.find('.expandable').find('a.btn');
13799+
const aElements = $task.find('.expandable').find('a.btn,a.twitter-button');
1380013800
if (aElements.length > 0) {
1380113801
debug('处理可点击元素', {
1380213802
count: aElements.length
@@ -13824,7 +13824,7 @@ function _toPrimitive(t, r) {
1382413824
(_unsafeWindow$$hookTi2 = unsafeWindow.$hookTimer) === null || _unsafeWindow$$hookTi2 === void 0 || _unsafeWindow$$hookTi2.setSpeed(1);
1382513825
const expandInfo = $task.find('.expandable');
1382613826
const [input] = expandInfo.find('input');
13827-
if (input) {
13827+
if (input && !input.value) {
1382813828
var _at;
1382913829
debug('处理输入框');
1383013830
const evt = new Event('input', {

0 commit comments

Comments
 (0)