You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tries to use `GM.openInTab` to open the given URL in a new tab, or as a fallback if the grant is not given, creates an invisible anchor element and clicks it.
535
535
If `background` is set to true, the tab will be opened in the background. Leave `undefined` to use the browser's default behavior.
536
+
If `additionalProps` is set and `GM.openInTab` is not available, the given properties will be added or overwritten on the created anchor element.
536
537
537
538
⚠️ Needs the `@grant GM.openInTab` directive, otherwise only the fallback behavior will be used and the warning below is extra important:
538
539
⚠️ For the fallback to work, this function needs to be run in response to a user interaction event, else the browser might reject it.
@@ -954,8 +955,8 @@ digitCount(num: number | Stringifiable): number
954
955
```
955
956
956
957
Calculates and returns the amount of digits in the given number.
957
-
The given value will be converted by being passed to `String()` and then `Number()` before the calculation.
958
-
Returns `NaN` if the number is invalid.
958
+
If it isn't a number already, the value will be converted by being passed to `String()` and then `Number()` before the calculation.
959
+
Returns `NaN` if the number is invalid and `Infinity` if the number is too large to be represented as a regular number.
959
960
960
961
<details><summary><b>Example - click to view</b></summary>
0 commit comments