Jump to content

Dr. Woo

Member
  • Posts

    20
  • Joined

  • Last visited

Posts posted by Dr. Woo

  1. 17 minutes ago, vitor said:

    If you’re going to use [0], there’s no reason to use querySelectorAll, use querySelector instead: document.querySelector('button[class="control-button spoticon-skip-back-16"]').click().

    Uhm, actually no. There are two or three instances (at least in case of 'Weiter' (Next)), and without the All it just does NOT work. Go try for yourself.

  2. A good friend and partner in crime has helped me with this. The problem is that – depending on the current page layout – there are multiple buttons titled „Weiter“/„Zurück“ on the page, which don't relate to playback control but for instance the page navigation. As the playback buttons have no ID assigned, we had to identify them through the class.

     

    So instead of the argument

    document.querySelector('button[title="Zurück"]') 

    we are using

    document.querySelectorAll('button[class="control-button spoticon-skip-back-16"]')[0].click()

    Advantage is that this is a language independent approach, as the class names don't get translated.

  3. Uhm... Sorry to bother again: Play/Pause works, but all the other commands for some reason not.

    Solved. Problem was the button titles in the HTML code are partially different on the german language Web Player: Next = Weiter. Previous = Zurück. Modified the Arguments in the Alfred workflow accordingly.

     

    Hmmm... Problem with Previous. It’s "Zurück" in the HTML code but neither of the following works:

     

    document.querySelector('button[title="Zurück"]').click()
    document.querySelector('button[title="Zurück"]').click()

    I assume the ü (lower case U umlaut) is causing the problem. How to format it?

  4. 23 hours ago, vitor said:

     

    There you go. I haven’t tested it on Catalina (I’m not on it), but it should work provided you gave Alfred the appropriate permissions. You may also need to activate (in Chrome) View → Developer → Allow JavaScript from Apple Events.

     

    Thank you. It works ... but only if Chrome is in front and the Spotify Web Player the front-most tab/window. Kind of pointless. I need it to work work globally, no matter where the Web Play tab currently sits. Possible?

  5. There are several workflows for controlling the Spotify App, but is there a way to control the Spotify Web Player (in Chrome) via Keyboard shortcuts via Alfred? If not with Alfred, any other suggestions?

     

    • Checked some Chrome extensions, but those e.g. don't let you use the Mac’s function keys.
    • http://beardedspice.github.io/ seemed to be an option, but somehow doesn't work in Catalina (no updates in 3 years).
  6. It would be nice if "cy EUR" (so without a number) would already display the exchange rates for in this case the EUR. Currently it is required to enter "cy 1 EUR" to get any results.

     

    Furthermore it would be cool to have the option that the listed "converted to"-Currency aren't shown alphabetically, but in order of usage, so the workflow should learn and adapt to the currency I convert to (& copy the conversion result) most often. This allows me to just hit "Enter" or "Arrow down + Enter" to copy my desired result, instead of closely looking at the results and using "CMD + Listnumber".

  7. This workflow relies on Google’s Currency Converter, which unfortunately has somehow ceased to exit, thus this workflow is dead.

    See here: https://stackoverflow.com/questions/49324112/google-finance-converter-stopped-working-or-changed-its-url?noredirect=1&lq=1

     

    Although there are other currency workflows, is there any chance to link this workflow to another internet source, like e.g. Yahoo Finance?

  8. Nice one. What’s missing is an optional preference to round the output value to 2 decimal places if the input value is NOT EQUAL to 1.

     

    Explanation:

    • If one enters no input value or 1, it means the user is interested in the exchange rate in full detail. Example: EUR 1 = USD 1.3533.
    • If however the input value is an "actual" cost/price, so the input DOES NOT EQUAL 1(.00), it is clear that this input is an "actual" conversion of that price/cost. Example: EUR 0.23 or EUR 154.89 as input value looks like an actual price.
    • An alternative (better ???) method to decide when to round to 2 decimal digits and when not to round, might be the size of the output (!) number itself (= number of digits in front of the comma/period). Example: When the input value of a large scale mass-produced item is lets say EUR 4.53, the third decimal place of the resulting USD value (so those 0.x Cents) might be important, thus the full number should be copied to the clipboard. If the output result however is USD 183.48(7) the out result should be rounded to 2 decimals -> 183.49 should be displayed and copied to the clipboard.
  9. Great workflow!

     

    A two feature requests from an Alfred newbie:

     

    • When given no word to search for, could you make your keyword OT, followed by the ENTER-Key to go straight to openthesaurus.de?
    • Same applies for an entered search string which is not found, thus not displayed as Alfred-selectable option: that word followed by the ENTER-Key, should open openthesaurus.de on search that word there, thus allowing the users to see openthesaurus’s suggestions offered on the OT website.

    ... and, as I unfortunately am too dumb to low-level code Alfred workflows:

    Could you please, please, please create a similar workflow for duden.de?

    (not the duden.de search option in your OT wf, but a separate workflow which provides live returns of duden.de’s search suggestions)

×
×
  • Create New...