Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A few changes related to language #270

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions dist/debugHelper.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// ==UserScript==
// @name 油猴调试助手
// @name h5player DebugHelper
// @name:en h5player DebugHelper
// @name:zh 油猴调试助手
// @namespace https://github.com/xxxily/TampermonkeyDebugHelper
// @version 0.0.1
// @description 用于油猴脚本的本地开发调试使用
// @description Used for local development and debugging of TamperMonkey script
// @description:zh 用于油猴脚本的本地开发调试使用
// @author xxxily
// @match http://*/*
// @match https://*/*
Expand Down Expand Up @@ -113,10 +116,10 @@ const _debugTools_ = {
const t = this
return new Promise((resolve, reject) => {
t.get(scriptUrl + '?t=' + Date.now()).catch(err => {
console.log('脚本内容加载出错~')
console.log('脚本内容加载出错~ / Error loading script <' + scriptUrl + '>')
resolve('')
}).then(res => {
console.log('脚本内容更新成功~')
console.log('脚本内容更新成功~ / Script <' + scriptUrl + '> was updated successfully')
if (saveToNamespace) {
window.GM_setValue(saveToNamespace, res.responseText)
}
Expand Down
4 changes: 2 additions & 2 deletions src/h5player/comment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ==UserScript==
// @name HTML5视频播放器增强脚本
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There may be side effects of changing the official name. Possibly TM or GreasyFork might think it's a new script, rather than a change to the existing one.
https://greasyfork.org/en/discussions/greasyfork/75556-when-a-script-name-is-changed-greasyfork-doesn-t-recognize-the-old-script
This needs to be well tested. Changing description and other things should be safe and could be first step.

// @name HTML5 video player enhanced script
// @name:en HTML5 video player enhanced script
// @name:zh HTML5视频播放器增强脚本
// @name:zh-TW HTML5視頻播放器增強腳本
Expand All @@ -10,7 +10,7 @@
// @namespace https://github.com/xxxily/h5player
// @homepage https://github.com/xxxily/h5player
// @version 3.3.9
// @description HTML5视频播放增强脚本,支持所有H5视频播放网站,全程快捷键控制,支持:倍速播放/加速播放、视频画面截图、画中画、网页全屏、调节亮度、饱和度、对比度、自定义配置功能增强等功能。
// @description HTML5 video playback enhanced script, supports all H5 video playback websites, full-length shortcut key control, supports: double-speed playback / accelerated playback, video screenshots, picture-in-picture, full-page webpage, brightness, saturation, contrast, custom configuration enhancement And other functions.
// @description:en HTML5 video playback enhanced script, supports all H5 video playback websites, full-length shortcut key control, supports: double-speed playback / accelerated playback, video screenshots, picture-in-picture, full-page webpage, brightness, saturation, contrast, custom configuration enhancement And other functions.
// @description:zh HTML5视频播放增强脚本,支持所有H5视频播放网站,全程快捷键控制,支持:倍速播放/加速播放、视频画面截图、画中画、网页全屏、调节亮度、饱和度、对比度、自定义配置功能增强等功能。
// @description:zh-TW HTML5視頻播放增強腳本,支持所有H5視頻播放網站,全程快捷鍵控制,支持:倍速播放/加速播放、視頻畫面截圖、畫中畫、網頁全屏、調節亮度、飽和度、對比度、自定義配置功能增強等功能。
Expand Down