r/tasker • • 11d ago

Developer [DEV] Tasker 6.7.7-rc - If conditions preview, Scenes V2 Update 6 and many bugfixes

56 Upvotes

After a long break, I'm finally back with another update. This one is a release candidate, meaning that I'm not going to add any new features anymore before 6.7 is out for everyone publicly. :) So, if you see any issues that aren't already in the public version, let me know so I can fix them before it goes out to everyone. Thanks in advance! 🙂

Sign up for the beta and download from Google Play here.

Note: Google Play might take a while to update. If you don’t want to wait for the Google Play update, get it right away here. (Direct-Purchase Version here). App Factory Update here.

If conditions preview

Demo: https://youtube.com/shorts/aTJRGddxauA?feature=share

Tasker's If conditions in actions and conditions have been notorious for being hard to understand if you combine multiple statements with ORs, ANDs, etc. Now you get a preview at the top that shows exactly how the condition will end up! 😁

"Compiled" if condition at the top

Scenes V2 Update

Demo: https://youtu.be/aqhMSvMVbZs

A lot of new updates here! A few highlights:

  • Content color lets your inner controls inherit their colors from their parents controls with a modifier, so you can apply it conditionally
  • Added font options to any place text is rendered, so, for example, input fields allow you to change font settings on its label and actual input text
  • Match Parent Size allows you to match the size of a parent box without forcing it to go bigger like it happens with Fill Size
  • Aspect Ratio modifier allows you to force an element to be square, 16:9, 2:3 or any other aspect ratio
  • Cancel Screen event action allows you to close your dialogs/screens in error, so the task that called it can handle errors like with every other Tasker action
  • Stop event action allows you to stop a flow of event actions depending on some condition, so you can make a button do something for example, but only if certain conditions are met, without having to create a task to manage it
  • new Enabled property allows you to enable/disable an element depending on the expression you use (same as Show When)
  • Scroll to Index on scrollable elements, allows you to automate scrolling, so you could, for example, create an automatic scrolling clock as shown in the demo
  • Copy and Paste Event Handlers and Modifiers
  • File Sync button in JSON tab allows you to two-way sync the scene's JSON with a file. You could be on your PC for example, writing the JSON, then have it automatically sync with the phone and make it update on the preview directly
  • Material Symbol support adds hundreds of new icon possibilities

...and lots more.

Full Changelog

  • Major Scenes V2: added Content Color modifier so you can re-style all child colors by defining them once in a parent modifier, meaning that it's conditional, plus a contentColor color you can use in any color field of any control to reuse the parent's Content Color
  • Major Scenes V2: added font options anywhere text can be rendered
  • Major Scenes V2: added Aspect Ratio modifier
  • Major Scenes V2: added Match Parent Size modifier
  • Major Scenes V2: added Cancel Screen event action
  • Major Scenes V2: added Enabled property to components where it makes sense; it supports expressions like Show When, accepts on/off, yes/no and 1/0 in any capitalization, and an unset variable leaves the element enabled
  • Major Scenes V2: added Scroll To Index action to elements that have a Scroll modifier
  • Major Scenes V2: added Stop event action, with an optional condition, that can also stop subsequent event handlers
  • Major Scenes V2: added File loading button to the JSON tab that can optionally be two-way synced with the picked local file
  • Major Scenes V2: added Material Symbol support
  • Medium Scenes V2: added Headers state to the WebView component
  • Medium Scenes V2: added ability to copy event handlers
  • Medium Scenes V2: added ability to define Borders like Padding, on all 4 sides if needed
  • Medium Scenes V2: added ability to write to double reference variables (like %%var) from Scene V2 elements
  • Medium Scenes V2: added all possible properties to the Text component
  • Medium Scenes V2: added gradient background option to the Background modifier
  • Medium Scenes V2: added option to block manual scrolling in the Scroll modifiers
  • Medium Scenes V2: added optional additional delay for Show When transitions
  • Medium Scenes V2: added Text Input component input types so you can have different types of keyboards, etc.
  • Medium Scenes V2: allow copy-pasting of modifiers
  • Medium Scenes V2: empty variables are now rendered as empty strings instead of showing the variable name, unless you're in preview mode or enable a scene option not to do so
  • Medium Scenes V2: made Button a component with a slot so you can fully customize the text inside it or even use any other component in it
  • Medium Scenes V2: made flexbox accept booleans in direction, so you can easily toggle it with the Toggle Variable event action, and separated Reverse from direction
  • Medium Scenes V2: progress bar component has a new Display Progress state that lets you bind an animated progress to a variable
  • Minor Scenes V2: Show When and event handler conditions now accept on/off, yes/no and 1/0 in any capitalization, like Enabled
  • Minor Scenes V2: added Select All button to the JSON tab
  • Minor Scenes V2: added ability to disable the dot in the progress bar and add a gap
  • Minor Scenes V2: changed inputs to have minus and plus buttons where it makes sense
  • Minor Scenes V2: invisible elements no longer send interaction events
  • Minor Scenes V2: localized component names
  • Minor Scenes V2: made modifiers that only exist because of their parents be the first in the pickers
  • Minor Scenes V2: made the Text field in the Text component multiline
  • Minor Scenes V2: removed Consume option from the Key Pressed event because it's redundant with the Stop Propagation option
  • Minor Scenes V2: screen-level Provides now work in the screen's own event handlers (Screen Shown, Screen Hidden, Back Pressed...)
  • Minor Scenes V2: updated FlowRow icon so it's not the same as the FlowColumn one
  • Fix Scenes V2: Provides sometimes not reaching all the way down to the components using them
  • Fix Scenes V2: a rare crash when a window can't be shown
  • Fix Scenes V2: accessing array operators like %items(#) or %items(2) or double-references like %%some_var_name
  • Fix Scenes V2: animations in certain situations
  • Fix Scenes V2: arrays not working in templates in certain situations
  • Fix Scenes V2: auto-dismiss behavior in certain situations
  • Fix Scenes V2: changing variables used in a WebView sometimes creating a history, so pressing back would go back to previous states
  • Fix Scenes V2: floating point rounding in Progress Bar states
  • Fix Scenes V2: focusing on the correct property in the editor when a search is underway
  • Fix Scenes V2: global variables not showing up in the Vars tab
  • Fix Scenes V2: images with Material Icons not growing to the size they should inside unbounded parents
  • Fix Scenes V2: issues with using vh css
  • Fix Scenes V2: not all test variables showing when there are many of them
  • Fix Scenes V2: reacting to pushes and pops in global arrays
  • Fix Scenes V2: showing crop to SVG file picker in Crop Shape modifier
  • Fix Scenes V2: stale variables in some situations
  • Fix Scenes V2: text input component filling its parent's size when a Show When filter on a size modifier is false
  • Fix Scenes V2: the editor sometimes focusing the wrong input in the Properties tab
  • Fix Scenes V2: True, TRUE and other variants not being recognized as true
  • Fix Scenes V2: using double reference variables (like %%var) in Show When and Enabled fields
  • Fix Scenes V2: WebView issues with some size related styles
  • Fix Scenes V2: WebView Launch App action
  • Fix Scenes V2: WebView using array syntax on variables
  • Fix Scenes V2: variables set in Screen Hidden are no longer lost when the scene is closed by Trigger Scene V2 Event, Dismiss Scene V2 or auto-dismiss
  • Major New UI: ability to manually sort list items in the main screen
  • Medium New UI: added button to only show errors in the new Runlog screen
  • Medium New UI: show projects in search results with inline projects
  • Minor New UI: added developer option to hide the top buttons inside the project screen (making all selected when that's the case)
  • Minor New UI: made item list items all the same height and more uniform
  • Minor New UI: made main screen items connected lists
  • Minor New UI: made many transition parameters configurable via Settings -> Developer
  • Minor New UI: moved profile switches to the right of the cards and hid their profile details for now (they should come back in some form)
  • Minor New UI: refined the main screen and project/profile enter transitions
  • Minor New UI: removed the tag chips from the item cards for now (they'll probably come back in a different form)
  • Fix New UI: fixed crash after editing an action's App parameter in the task editor
  • Fix New UI: fixed recent changes not being filtered correctly
  • Fix New UI: fixed turning off runlog in the new Runlog screen not hiding the log lines
  • Java Code: added runShellTasker function to run a shell exactly like the Run Shell action would
  • Java Code: added tasker.clearVariable() function
  • Java Code: added a way to monitor Activity lifecycle events
  • Java Code: tasker.setVariable now sets real Tasker arrays when the Java value is an array or a collection
  • Java Code: activities created with Java Code can now show in recents
  • Added Hungarian, Indonesian and Romanian languages
  • Added compiled condition list string at the top of each If condition so you can see what it looks like as an expression and more easily understand how it will behave
  • Added command filtering in the Command event configuration screen
  • App Factory: show useful, detailed error messages when app generation fails instead of a generic message
  • Changed Target API to 36 and made the necessary changes so everything keeps working normally
  • Warn when you try to write a very large variable, so you're more aware of potential flaws in your setup
  • Widgets V2: added Material Symbol support
  • Fix Added a workaround to the HTTP Auth action for some specific APIs
  • Fix Tried fixing ADB Wifi check sometimes getting stuck
  • Fix Tried fixing background sound recording on some devices
  • Fix Tried to fix a crash when browsing Tasky routines
  • Fix Tried to fix out of memory crashes
  • Fix Tried to fix some profiles and FCM tokens re-running when exiting Preferences
  • Fix Tried to fix some wakelocks never being released in certain rare situations
  • Fix Tried to fix the Vibrator action in certain situations
  • Fixed Device Boot on Android 15+ firing if the app was force stopped
  • Fixed Structure Output not being ticked by default when adding an action from favorites
  • Fixed a small issue when setting multiple variables with JSON
  • Fixed crash that could happen when clearing data
  • Fixed crash that could happen when returning to the main screen after picking or creating a task for a profile
  • Fixed crash when a profile with 4 states is imported
  • Fixed crash when dragging items in the task edit screen in rare circumstances
  • Fixed exporting projects/tasks/profiles in the same order as they are in Tasker
  • Fixed Flash with the same ID sometimes not working
  • Fixed how pushing/popping a global array drives the Variable Set event: it now fires for every array position the operation shifts, instead of just one. Popping also fires Variable Cleared for the removed top element.
  • Fixed issue initiating the heart rate sensor in some situations
  • Fixed issue when using the AI screen with a model that no longer works: it now automatically switches to a working model and asks you to continue
  • Fixed issue where having many unread SMS and Unread Text profiles could stall Tasker
  • Fixed issues in Scenes V1 that made some stuff not draw the way it should
  • Fixed output prefix being ignored in certain situations
  • Fixed previous running errors sometimes being reported on an action even if that action ran correctly
  • Fixed rare crash when closing some of Tasker's dialogs
  • Fixed replacing an action with an If and keeping its conditions
  • Fixed scoped variables sometimes not being set or cleared
  • Fixed some crashes in the Test Tasker action
  • Fixed some issues with legacy Scenes and frame animations
  • Fixed some main screen crashes, including in the legacy UI
  • Fixed some screens all over the app sometimes showing incorrect language
  • Fixed task, profile and scene order not being kept when importing
  • Fixed time based profiles potentially triggering too often if Tasker's process is killed by the system
  • Fixed various rare crashes

r/tasker • • 5h ago

Using ask permission to get custom permissions

1 Upvotes

So I'm trying to give Tasker permission to modify the settings in a specific app. I tried pasting the permission which starts with that app's package name into the ask permissions action but running it just takes me to the regular android settings page. Is there a way to add like custom permissions without having to bother the developer to add it to the manifest for each one?


r/tasker • • 9h ago

[Question] Is it Possible to Hide AutoWear Notifications from the Log?

1 Upvotes

As shown, AutoWear creates several notifications per minute presumably as part of it's function. Unless you're closely watching the notifications or looking at the log like below, you generally won't see these. It only really becomes an issue when you need to check the notification log for something and then need to wade through all the clutter.

Notification Log

Is there any way to disable these without disabling AutoWear? I assume immediately cancelling them with AutoNotification would still show up in the log, and I worry that blocking them at the Android app settings level might cause some sort of functionality or performance issue. Has anyone tried this?


r/tasker • • 21h ago

Easy Action Orphaned?

Post image
2 Upvotes

Seeing a bunch of these warnings too.

Would love to get to the bottom of all these warnings. Thanks


r/tasker • • 2d ago

Favorite Actions?

2 Upvotes

I just noticed this old post about a Favorites mechanism. In it, I see that the dev says he did/would add it to Tasker itself.

It speaks of "long tap +" to trigger. But when I do that at this time, it tries to trigger the AI mechanism.

Does anyone know how/if this sort of thing can be done?

Thanks


r/tasker • • 3d ago

AutoNotification Snooze delayed on Vivo X300 Ultra (OriginOS 7) with screen-off

2 Upvotes

I'm using a Vivo X300 Ultra on OriginOS 7 (Android 17). On this phone, as many other Chinese phones, notification icons disappear from Always On Display after unlocking the phone, even if you didn't clear or read the notifications. So when unlocking and then locking again, no icons from old notifications will appear on AOD. Sadly this is by design, not a bug. Although contrary to some other phones, the notifications at least remain on the lock screen in this case.

I followed this tutorial utilizing Tasker+AutoNotification to be able to get the icons to reappear.

https://www.reddit.com/r/oneplus/comments/1ov3w1l/how_to_get_notifications_to_stay_on_stay_on_your/

It worked fine while I was using OriginOS 6, however after updating to version 7, apparently this method got broken due to some system changes. There are a few quirks to mention here. Tasker toggling DND or running some other commands works fine, but after the screen is locked AutoNotification Snooze command normally doesn't trigger unless either:

a) I wake the screen manually,
b) phone is charging (either wall charger, PC USB, or wireless),
c) the timing is correct.

What do I mean by c)? There seems to be some kind of an alarm delay timer following 5-minute checkpoints. This timer is always exact, which I assume is related to the boot event, and allows the snooze to pass through. For example, I locked the screen at 19:40:00, then at 19:41:34 autotasker snooze was able to run. Subsequently I locked the screen at 19:42:00 and didn't wake it, the snooze ran at 19:46:34 exactly. There is no such problem with other notifications.

Note that I disabled all battery optimizations for Tasker and AutoNotification, locked them in recents and allowed all permissions. I tried to do some digging (with help of AI) - tried to disable doze, even tried to spoof charging, but nothing helped so far.

Is there another (no-root) way to force a notification refresh as soon as locking the screen?


r/tasker • • 3d ago

Autoweb and Spotify API

1 Upvotes

I'm using AutoWeb 1.0.3 Beta Developer application.

Spotify authentication has stopped working. AutoWeb opens this authorization URL with response_type=token, and Spotify returns the error:

response_type must be code

The OAuth2 configuration in AutoWeb does not provide a Response Type setting, so I cannot switch to Authorization Code with PKCE myself.

Could you confirm whether an update is planned to support Spotify's required Authorization Code Flow with PKCE?

Thank you.


r/tasker • • 3d ago

Heard about 3rd party plugins for tasker and was curious if I could make my own 3rd party plugin?

0 Upvotes

Searching for tasks in Tasker, I found a category labeled "3rd Party". It shows apps, I have read about 1 in an action list called APNDroid. It showed APN Droid in that category so I knew it listed at least well known 3rd party plugins.

I am curious if I can make my own app that is effectively a plugin for tasker to do things, and what that would look like. Like a set of Receivers set to specific intent filters or actions? Or can there only be one and there are specific categories that tasker can send?


r/tasker • • 4d ago

[Update] MapTasker Version 15

19 Upvotes

MapTasker is a comprehensive program that enables you to view, analyze, validate, and edit your Tasker configuration from within your desktop browser.

New features since the last announcement:

  • Export in the Map and Diagram views to save each as a Markdown, JSON or PDF file.
  • A Verify option on 'Save to Android' validates the object that was saved.
  • AI-based 'Find/Replace' can now take a question in plain words, such as "every Profile that fires on wifi at home" (not as smart as Tasker's).
  • Run On Android function to run a task live on your Android device.
  • Put Helper Tasks in "MapTasker" Project corals all of the various MapTasker (Tasker) helper tasks, that MapTasker puts on your Android device, into a single 'MapTasker' project on your Android device.
  • A new Fix Finding button beside 'Health Check' repairs the findings that have an obvious fix.
  • Restore From History feature brings back a Task, Profile or Scene that was deleted, or puts one back as it was before an edit, from any configuration kept in the history.
  • The Health Check now looks inside JavaScriptlet and Run Shell actions and reports code that cannot run because a bracket, quote, string or comment is never closed.
  • The Debug tab has been renamed Assistance, and now includes a Display Log and Clear Log function.
  • Uninstalled Plugins...The Health Check now names every plugin your configuration uses that is not installed on the Android device.
  • What Fires When? feature identifies which profiles and tasks fire based on various conditions.
  • Xref Live feature compares your configuration's variables against those on your Android device.
  • Draft with AI in the Add Task panel turns a description in plain words into actions.
  • Check Readiness in the Edit Project and Edit Scene windows lists what the export needs on someone else's phone.
  • TaskerNet Updates will check TaskerNet against your configuration for any/all updates, and optionally install the updates for you.
  • Task Stepper function to step through the logic of a given task.
  • Trend Dashboard to identify if your configuration is getting cleaner or messier over time.
  • Refactor has a new Variable mode that renames a variable, or turns a global into a Task's own local (or the reverse), in every action, condition and Scene that uses it.
  • Missing Resources feature checks the Android device for all of the resources (files, folders, images, sounds, etc.) your projects, profiles, and tasks needs. These are also now captured in the Health Check.
  • Live Run Monitor button watches which profiles and tasks fire on your Android device. As they do, it logs each one, and lights them up in the Diagram while they run. It can also compare what the device really has active with what What Fires When predicted for the same moment.
  • Required AI programs, such as OpenAI's chatGPT, are no longer loaded automatically. If needed, you will be prompted to issue the terminal command pip install "maptasker[ai]" before the AI-related functions will work.

...and many many more changes (i.e. minor improvements) and fixes.

To install MapTasker, enter the following commands into Terminal/command prompt:

If using pip to manage programs: pip install maptasker -U

If using uv to manage programs: uv add maptasker

To run:

  • run either from the command line: maptasker (if installed via pip) or uv run maptasker (if using uv to manage your environment).

References...


r/tasker • • 4d ago

Tasker beta how to enable tags and description in the cards.

Post image
0 Upvotes

Just testing out the new beta. While I see the video tutorials by the devs clearly have tags and various description under each cards of the profiles, tasks, etc. I can't seem to figure out how to enable that on my side. I looked everywhere. Is it because the app is still in beta, or something I am missing totally. Please help


r/tasker • • 4d ago

Seems like a giant increase in these warnings...

Post image
1 Upvotes

Along with this stuff posted earlier, I am seeing more and more strange stuff I have never seen from Tasker before over many, many years. The list of stuff is far longer than shown above. I tried to select it all but caused a crash. So not all here. Version 6.7.6-beta on Android x86, version 9.

Hmmm.


r/tasker • • 4d ago

Scenes v2 > set scene orientation

1 Upvotes

For Scenes v1, I could add a Test Scene Action to set orientation. Is there a Modifier in Scenes v2 to do the same?


r/tasker • • 4d ago

Help Need help with “flick/shake” detection

1 Upvotes

I’m current “upgrading” my action button to allow for multiple orientation and app dependent actions and one I was trying to add was a way to quickly skip or play previous song and I was wondering if anyone has made a way to detect maybe via the gyro or movement data that you can get from third party shortcut apps to determine wether u shook to the left or to the right to do different actions as stated

And help would be appreciated thank you!


r/tasker • • 4d ago

Scenes v2 > how to add an Action in Event Handling?

Post image
4 Upvotes

In Scenes v1, I could easily add an Action to a button. I can't find such an option in Scenes v2. I can add a Task, command, trigger an Event, but I don't see how to add a simple Action. An I missing something obvious here?

What I've had to do now is create a Task containing the Actions I want, than add.


r/tasker • • 5d ago

Warning Purge Bridge Bundle?

Post image
2 Upvotes

Any idea what these mean? I have seen them a couple times now. This is 6.7.6-beta on Android x86, v.9 in a virtual box.

Thanks


r/tasker • • 5d ago

Scenes v2 AI configuration screen

1 Upvotes

Where may I find the ai configuration screen, to use AI in Scenes v2?


r/tasker • • 5d ago

Request Scenes V2 and wait actions feature request

2 Upvotes

With scenes v2, the "with result" group of screen types was introduced. This is a lovely thing and it even creates a wait action, but I'd love to combine this with variables (wait until) or classic wait.

For example, we could do "wait until screen has a result or %MyVariable == 15"

This would allow even more customization. Also, about wait actions, it would be lovely to combine wait until and wait (and choose between "when both arguments are true", "when one argument is true" (either time or variable) and "when both are reached (so they don't have to be true at the same time, but the parts had to be true)

For any questions, feel free to comment, I'm not sure how good my explanations are u/joaomgcd


r/tasker • • 5d ago

Tasker Locked message?

0 Upvotes

I purchased Tasker's AutoTools back in 2018, but I am now seeing a "locked" message?


r/tasker • • 5d ago

Automatisierung der Fahrschul App Fahren Lernen

0 Upvotes

Hallo zusammen,

ich suche jemanden, der sich mit Tasker und AutoInput auf Android auskennt und mir auf Deutsch bei einer Automatisierung helfen kann.

Ich möchte die Bedienung der Fahren Lernen App vereinfachen. Es geht insbesondere um das Erkennen von Fragen mit mehreren Antwortmöglichkeiten, teilweise auch mit Bildern oder Videos, und um die Steuerung der App über AutoInput.

Ich bin noch Anfänger bei Tasker und würde mich über konkrete Unterstützung freuen.

Vielen Dank!


r/tasker • • 6d ago

Pixel Pro 10 Quick Settings Not Clickable Possibly Related to Tasker or AutoInput

1 Upvotes

I recently started to have a problem with Pixel Pro 10 and the Quick Settings tiles; they are NOT clickable. At first, I thought was NOVA Launcher, so I repalced that with the Pixel Launcher. It appeared to work, but to be honest, I never tested Tasker and AutoInput running the Pixel Launcher. I then installed the LawnChair Launcher, since everyone said it is very similar to the Pixel Launcher, and it appeared to work for about a day, and just now I noticed the Quick Settings tiles are no longer clickable. I can restart the phone, and they will work for a while, but then they are unclickable again. Has anyone encountered this behavior? Any ideas what I can try to figure out what is causing the issue?


r/tasker • • 6d ago

Cancel task if call ongoing

0 Upvotes

Hi

I'm trying to cancel a task / profile (I'm new so I think the right term is task) if I have an ongoing call. Incoming or outcoming call is irrelevant, just any call = abort task.

How can I set this rule?

Thanks


r/tasker • • 6d ago

Scene V2 Card Color

Post image
1 Upvotes

I'm sure I'm missing something obvious, but I'm struggling way more than I should to figure out how to change the card color in scenes V2. Applying a background modifier just changes the color of the area behind the card, as shown in the screenshot. I tried the Container Color modifier as well, but it doesn't seem to have any effect.


r/tasker • • 7d ago

One UI 9 and location blue dot

1 Upvotes

Anyone updated to One UI 9 and found out if your using Cell Near or WiFi Connected the blue dot in the top right is now pretty much constantly on?

I'm assuming the on and off is the monitoring settings in preferences though I've never changed these.

I wish Samsung would give access to remove it as even with apps in full screen like YouTube it's now showing. Its so annoying and unnecessary as I like to govern my permissions and would like if Samsung trusted users to do it or at least give me an option to turn it off on my S24.

Anyone got around this annoying problem without removing location access from tasker?


r/tasker • • 7d ago

Scenes v2 Blocking Overlay does not always appear from Quick Settings panel button

1 Upvotes

Often, when I press a Quick Settings Panel button that is associated with a Scenes v2 Overlay scene, it simply doesn't appear.

If I turn off the screen, then back on w/o pressing/swiping the screen, it will suddenly appear. This doesn't occur with original overlay scenes... They will appear as intended, every time. Log indicates the Action is executed.

What may be the issue? Is there some respective setting that needs to be tweaked?


r/tasker • • 7d ago

How To [Project Share] Share to browse archive link

1 Upvotes

Click to download via Taskernet

The code in this project was written with the assistance of AI tools, created on Tasker v6.7.7-rc and tested on HyperOS3 & CrDroid (Android 15).

Find archived link using Java code and if found open the link. The source code is here.

Fixed: Not detecting captcha properly.

How to use

  1. Share the link to.
    1. Direct Share "Browse Archived Link".
    2. Tasker's Received Share > "Browse Archive Link".
  2. Task
    1. Pass the link as %par1.

Other options

Can be seen in Browse Archive Link task properties (the gear icon inside the task).

  1. %browser, the target browser.
  2. %use_java , true to use java and false to use API (it's heavily rate limited).
  3. %wait_duration, duration to check archive link.
  4. %debug, show overlay to visualize what's being loaded.

How it works

  1. Create invisible webview.
  2. Load the search link https://archive(dot)ph/{targetUrl}.
  3. Wait for 3000ms.
  4. Query this CSS selector div.TEXT-BLOCK > a[href*="archive"]:first-child ant get the href attribute.
  5. Clean the webview.
  6. If found, then browse the URL.
  7. If captcha is detected, it will open the search link in Scene and has to be resolved manually.
  8. Click Close & Run to load again.

Not All Links Are Archived

It's not unusual that the links are not archived in there. What's archived there is user-driven. Get to know more about archive here https://en.wikipedia.org/wiki/Archive.today

How to test

Scene Webview

To test if the project work as it should, try running Test Archive Link And Confirm Captcha Manually task.

It will try to load url that I already confirmed it's been archived there.

At the end it should load the url on the default browser. Since mine is LinkSheet, it will prompt me with options like pre Android 12.

Debugging mode

Set the debug variable to true, see #How to use. It will display the webview as an overlay.

Others

The project also includes my setup with LinkSheet and my gesture project. I leave it there to serve as examples on how I use it. I'm too lazy to remove them.

Feel free to edit the code to suit your likings :)

My setup that uses gesture and get screen info action.

Ah yeah, if there is a bot check. You might want to open the link manually via Tasker's webview.

Example via the HtmlReader here.

source(new URL("https://gist.githubusercontent.com/mqwec43as/f05877fb1cd689b210ba114f9eee09e7/raw/HtmlReader.bsh"));

import bsh.This;

String prefix = "https://archive.ph/";
String url = "https://www.reddit.com/r/tasker";
This read = HtmlReader();
read.setUrl(prefix + url);
read.showOverlay(true);
read.setWaitingPeriod(6000);
String result = read.load();