查看完整版本 : [分享] Mac Safari or Chrome - 重新載入所有分頁

6674 2018-12-7 09:44 AM

[分享] Mac Safari or Chrome - 重新載入所有分頁

有些網頁好L煩,成日 time out dim screen;  或想一口氣更新所有 news forum。


抄自網上高人,再整理插圖

open Automator
choose New -> Quick Action
select [Run AppleScript ]
Copy and paste following script

[i]tell application "Safari"
set a to tabs of the front window
repeat with x in a
set docUrl to URL of x
set URL of x to docUrl
end repeat
end tell[/i]

[i][attach]9082742[/attach][/i]

[list][*]Saves as “Reload all Safari Tab”[*]Then goto Safari Service and config (activate and shortcut)[/list]


[attach]9082742[/attach]

[attach]9082743[/attach]

[list][*]click and create shortcuts if wish (beware conflict w/other shortcuts)[/list]


[attach]9082744[/attach]


[list][*]Safari should have this Service[/list]


[attach]9082745[/attach]

6674 2018-12-7 09:47 AM

Do the same for Chrome,

just change script to read as.. and saved as other name

tell application "[color=#ff0000]Google Chrome[/color]"
        set a to tabs of the front window
        repeat with x in a
                set docUrl to URL of x
                set URL of x to docUrl
        end repeat
end tell


[attach]9082757[/attach]
頁: [1]
查看完整版本: [分享] Mac Safari or Chrome - 重新載入所有分頁