parent
2ced7887c5
commit
6a5cd2763f
@ -0,0 +1,71 @@
|
|||||||
|
/*
|
||||||
|
THIS IS A GENERATED/BUNDLED FILE BY ROLLUP
|
||||||
|
if you want to view the source visit the plugins github repository
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
var obsidian = require('obsidian');
|
||||||
|
|
||||||
|
/*! *****************************************************************************
|
||||||
|
Copyright (c) Microsoft Corporation.
|
||||||
|
|
||||||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||||||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||||||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||||||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||||||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
|
PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
***************************************************************************** */
|
||||||
|
|
||||||
|
function __awaiter(thisArg, _arguments, P, generator) {
|
||||||
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
||||||
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
||||||
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
||||||
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
class GarbleText extends obsidian.Plugin {
|
||||||
|
constructor() {
|
||||||
|
super(...arguments);
|
||||||
|
this.isGarbled = false;
|
||||||
|
}
|
||||||
|
onload() {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
console.log('loading Garble Text plugin');
|
||||||
|
this.addCommand({
|
||||||
|
id: "toggle-garble-text",
|
||||||
|
name: "Toggle Garble Text",
|
||||||
|
callback: () => {
|
||||||
|
if (this.isGarbled)
|
||||||
|
this.ungarble();
|
||||||
|
else
|
||||||
|
this.garble();
|
||||||
|
this.isGarbled = !this.isGarbled;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//TODO: garble with regex
|
||||||
|
});
|
||||||
|
}
|
||||||
|
onunload() {
|
||||||
|
this.isGarbled = false;
|
||||||
|
this.ungarble();
|
||||||
|
console.log('Garble Text unloaded');
|
||||||
|
}
|
||||||
|
garble() {
|
||||||
|
this.app.garbleText();
|
||||||
|
}
|
||||||
|
ungarble() {
|
||||||
|
this.app.dom.appContainerEl.removeClass('is-text-garbled');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = GarbleText;
|
||||||
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsIm1haW4udHMiXSwic291cmNlc0NvbnRlbnQiOm51bGwsIm5hbWVzIjpbIlBsdWdpbiJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQXVEQTtBQUNPLFNBQVMsU0FBUyxDQUFDLE9BQU8sRUFBRSxVQUFVLEVBQUUsQ0FBQyxFQUFFLFNBQVMsRUFBRTtBQUM3RCxJ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
|
{
|
||||||
|
"id": "garble-text",
|
||||||
|
"name": "Garble Text",
|
||||||
|
"version": "1.2.0",
|
||||||
|
"minAppVersion": "0.12.10",
|
||||||
|
"description": "Garbling text in Obsidian turns all content in the entire app (notes, sidebar, etc) into lines so you can take screenshots without exposing sensitive data.",
|
||||||
|
"author": "kurakart",
|
||||||
|
"isDesktopOnly": false
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
CSS part developed by Matthias C. Hormann (aka Moonbase59) 2021-08-22
|
||||||
|
*/
|
||||||
|
|
||||||
|
.app-container.is-text-garbled img {
|
||||||
|
filter: blur(10px) !important;
|
||||||
|
-webkit-filter: blur(10px) !important;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
CSS part developed by Matthias C. Hormann (aka Moonbase59) 2021-08-22
|
||||||
|
*/
|
||||||
|
|
||||||
|
.app-container.is-text-garbled *:hover {
|
||||||
|
font-family: unset !important;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.app-container.is-text-garbled img:hover {
|
||||||
|
filter: unset !important;
|
||||||
|
-webkit-filter: unset !important;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
{
|
||||||
|
"mediaFragmentsEmbed": true,
|
||||||
|
"timestampLink": true,
|
||||||
|
"extendedImageEmbedSyntax": true,
|
||||||
|
"thumbnailPlaceholder": false,
|
||||||
|
"useYoutubeControls": false,
|
||||||
|
"interalBiliPlayback": true,
|
||||||
|
"hideYtbRecomm": false,
|
||||||
|
"embedMaxHeight": "30vh",
|
||||||
|
"embedMinWidth": "400px",
|
||||||
|
"plyrControls": {
|
||||||
|
"restart": false,
|
||||||
|
"rewind": false,
|
||||||
|
"play": true,
|
||||||
|
"fast-forward": false,
|
||||||
|
"progress": true,
|
||||||
|
"current-time": true,
|
||||||
|
"duration": true,
|
||||||
|
"mute": false,
|
||||||
|
"volume": true,
|
||||||
|
"captions": true,
|
||||||
|
"settings": true,
|
||||||
|
"pip": false,
|
||||||
|
"fullscreen": true
|
||||||
|
},
|
||||||
|
"embedMaxHeightMobile": "20vh",
|
||||||
|
"embedMinWidthMobile": "200px",
|
||||||
|
"plyrControlsMobile": {
|
||||||
|
"restart": false,
|
||||||
|
"rewind": false,
|
||||||
|
"play": true,
|
||||||
|
"fast-forward": false,
|
||||||
|
"progress": true,
|
||||||
|
"current-time": true,
|
||||||
|
"duration": true,
|
||||||
|
"mute": true,
|
||||||
|
"volume": true,
|
||||||
|
"captions": true,
|
||||||
|
"settings": true,
|
||||||
|
"pip": false,
|
||||||
|
"fullscreen": true
|
||||||
|
},
|
||||||
|
"timestampTemplate": "\n{{TIMESTAMP}}\n",
|
||||||
|
"timestampOffset": 0,
|
||||||
|
"hideEmbedControls": false
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"id": "media-extended",
|
||||||
|
"name": "Media Extended",
|
||||||
|
"version": "2.11.1",
|
||||||
|
"minAppVersion": "0.12.2",
|
||||||
|
"description": "Media(Video/Audio) Playback Enhancement for Obsidian.md",
|
||||||
|
"author": "AidenLx",
|
||||||
|
"authorUrl": "https://github.com/AidenLx/",
|
||||||
|
"isDesktopOnly": false
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1 +1,4 @@
|
|||||||
|
|
||||||
|
![](https://www.youtube.com/watch?v=t6qv1Arv5sk)
|
||||||
|
|
||||||
|
![](https://piped.kavin.rocks/watch?v=t6qv1Arv5sk)
|
Loading…
Reference in new issue