This user script adds a button to edit the HTML code of a note in Evernote\Yinxiang Web.
这个脚本会在印象笔记的编辑工具栏中添加一个HTML编辑按钮。
我(Oaker)在原脚本上:
- 增加 app.yinxiang.com 域名匹配
- 更换jquery地址为国内CDN,加快访问
This user script adds a button to edit the HTML code of a note in Evernote\Yinxiang Web.
这个脚本会在印象笔记的编辑工具栏中添加一个HTML编辑按钮。
我(Oaker)在原脚本上:
// ==UserScript== | |
// @name Evernote Web in-app note link | |
// @namespace http://andrealazzarotto.com/ | |
// @version 1.1 | |
// @description This scripts shows the internal "evernote:///" URI of a note | |
// @match http://www.evernote.com/Home.action* | |
// @match https://www.evernote.com/Home.action* | |
// @match http://www.evernote.com/view/notebook/* | |
// @match https://www.evernote.com/view/notebook/* | |
// @match http://app.yinxiang.com/Home.action* |
00:19:40 | DevelopingZack: I'll say the same. Thank you. | |
00:19:51 | DevelopingZack: Yeah, I didn't. I didn't have any affiliation here with Coin Geek until Alex said, hey, do you want to do this? And I was like, yeah, let's do it. | |
00:19:57 | DevelopingZack: And if it wasn't for everybody listening right now, we wouldn't have kept going. So really. | |
00:20:01 | DevelopingZack: Thank you to the audience, and that's kind of the most important thing. | |
00:20:05 | AlexJVidal: No doubt, no doubt. | |
00:20:09 | BLUVNBU: 3 knots. | |
00:20:15 | AlexJVidal: So I see we've already got some requests. What's up, Matt? Welcome to the stage. Be love. And be you, my brother from another mother. | |
00:20:15 | BLUVNBU: What's up? | |
00:20:17 | BLUVNBU: Hey, Zach. | |
00:20:20 | BLUVNBU: Yes. |
body { | |
/* use dark theme color for code */ | |
--code-background: #242424; | |
--code-normal: #b3b3b3; | |
--code-keyword: #fa99cd; | |
--code-property: #53dfdd; | |
--code-function: #e0de71; | |
--code-string: #44cf6e; | |
--code-operator: #fb464c; | |
--code-comment: #666666; |
javascript: void((function() { | |
function $(id) { | |
return w.document.getElementById(id) | |
} | |
var w = window.open("about:blank", "", "width=500,height=150"); | |
w.document.title = 'Refer to "' + document.title + '"'; | |
w.document.write('<style>*{margin:0;padding:0;font-size:16px;}body{margin:10px;}label,input{margin-bottom:4px;}label{white-space:nowrap;clear:both;font-weight:bold;height:20px;width:15%25;float:left;line-height:20px;text-align:right;display:block;font-family:arial,sans-serif}input{font-family:monospace;border:dashed 1px black;width:80%25;float:right;height:20px;}</style><label for="text">Text</label><input id="text"></input><label for="markdown">Markdown</label><input id="markdown"><label for="markdown-image">MD Image</label><input id="markdown-image"></input><label for="html">HTML</label><input id="html"></input><label for="title">Title</label><input id="title"></input>'); | |
$('html').value = '<a href="' + encodeURI(location.href) + '" target="_blank">' + document.title + '</a>'; | |
$('title').value = |
/*! | |
* Start Bootstrap - Creative Bootstrap Theme (http://startbootstrap.com) | |
* Code licensed under the Apache License v2.0. | |
* For details, see http://www.apache.org/licenses/LICENSE-2.0. | |
*/ | |
(function($) { | |
"use strict"; // Start of use strict | |
// jQuery for page scrolling feature - requires jQuery Easing plugin |
addEventListener("fetch", (event) => { | |
event.respondWith( | |
handleRequest(event.request).catch( | |
(err) => new Response(err.stack, { status: 500 }) | |
) | |
); | |
}); | |
async function handleRequest(request) { | |
console.log(`${request.method} ${request.url}`) |
import { goAuth } from '@/api/buzz.ts' | |
import AppConfig from '@/config/' | |
import MetaIdJs from "metaidjs" | |
let singleton | |
// 调用:window.__metaIdJs.addProtocolNode_(config); | |
export default function SDKInit() { | |
if (singleton) return singleton | |
singleton = new Promise((resolve, reject) => { |
/** | |
* 设置指定元素全屏 | |
* @param {dom} ele | |
*/ | |
function fullScreen(ele) { | |
const el = ele || document.documentElement; | |
const rfs = | |
el.requestFullscreen || | |
el.webkitRequestFullScreen || | |
el.mozRequestFullScreen || |
/* eslint no-underscore-dangle: 0 */ | |
import * as Sentry from '@sentry/browser'; | |
const videoObj = { | |
videoWaitingTimeout: null, // 会在 player.vue 卸载时清除 | |
}; | |
// 自定义上报,可选携带附加数据 | |
function remoteLog(msg, level = 'info', extra = {}) { | |
Sentry.withScope(scope => { |