Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

javascript

  1. M

    Why is the large gif image causing the app to flicker?

    0 There is electron js application + react. Necessary show many gif images, but on some devices observed flickering screen. This was fixed on windows by adding the line app.commandLine.appendSwitch('force_high_performance_gpu');. The problem is seen on iMac. Graphic/Display: Radeon Pro 575...
  2. V

    iOS Call JS Function from Swift and get returned value from JS printed in Swift

    I need to call a JavaScript function from a local JavaScript file and then Call JS Function CalcualatePremiumWeb and get the returned value from JS printed in Swift. However, I'm encountering an error when trying to evaluate the JavaScript function and retrieve the result. Swift guard let...
  3. M

    macOS How to use Adobe Illustrator executeMenuCommand with AppleScript?

    Hello, How can I write AppleScript to communicate with Adobe Illustrator using "executeMenuCommand" (javascript command)? https://ten-artai.com/illustrator-ccver-22-menu-commands-list/ I tried: tell application "Adobe Illustrator" do JavaScript "app.executeMenuCommand("Expand3");" end tell...
  4. 0

    Featured article block should support horizontal swiping

    On macOS trackpad, the featured article block should support horizontal scrolling via horizontal swiping gesture with two fingers on a Mac. A good example implementation would be the open platform TMDB (The Movie Database) https://www.themoviedb.org
  5. C

    Content Blocker for Javascript with Exceptions?

    Does anyone know of a content blocker for iOS that will let me basically block all Javascript in Safari, but carve out exceptions for particular sites? Bonus points if I could also have those sites on the exception list be subject to normal blocking (e.g., two levels, either no Javascript, or...
  6. Z

    Sites and JavaScript

    Are there any sites fully created with the use of JavaScript? If so, can you please post some links for a few samples?
  7. elkeembo

    Javascript to convert .pages into .pdf via automator

    Hi, I have version 10.12.6 I'm trying to convert a lot op .pages into .pdf automatically. I have found that you can do that via Automator. Ask Items from Finder Execute javascript Ok, all the possible javascripts that I have found on the web... all seem to have errors... (on line 4 or 5 or...
  8. R

    Safari: Workaround for 'Scroll down to load more content' behavior?

    I feel like suddenly every website has implemented this feature. I'm on a Mac Pro 5,1 with Yosemite on an SSD and the internet connection download measured around 30-40Mbps on average. But ever since that feature started spreading like cancer, it's just basically made the whole internet...
  9. Zedcars

    How to Initially Hide Element on First Page Load?

    Hello, I'm trying to code the creation of 'sticky notes' on a webpage with a contextual menu right-click option. I nearly have it working, but there are a couple of things I cannot seem to figure out (I've been trying for a couple of weeks now!). I'm very new to web development (beginner...
  10. Strider64

    Trivia Intoxication

    I have been developing a trivia game written in vanilla javascript that also incorporates Ajax and PHP into the mix. Here's the link: https://www.triviaintoxication.com/ I also have a github page where I have been sharing the files...
  11. aaronvan

    macOS Safari extension pop-up warning

    My 89-year old father-in-law is in the early stages of dementia and uses his credit card to buy a lot of random unnecessary crap online. I wrote this Safari .js extension to pop-up a warning when he opens a new window, warning him about using his credit card. function watchOut() {...
  12. poiihy

    Trying to make userscript that detects a certain piece of text and displays an alert or something

    I want to make a Tampermonkey userscript that detects the quantity of a certain piece of text in the HTML and displays an alert (or sound or something like that) when the quantity increases. This is for a chat. So for example, suppose we want to look for "@asdf" and there are zero of them. Then...
  13. DrMotownMac

    Suggestions for BEGINNING to learn Web Development

    First, I apologize for the length of this post, but I think it's important to understand where I'm coming from and what I'm trying to accomplish before you offer suggestions. Now I know this is an ambitious undertaking, but I have it set in my head that I can do this and I think that some of...