no-style-please2 0.6.4 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/encrypted.html +6 -9
- data/_layouts/post.html +2 -2
- data/_sass/no-style-please.scss +0 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c02bb410287b4bdd1557315636b0a66070790b1399807cdf8ffde006734a7b0a
|
4
|
+
data.tar.gz: b65cc3b169d64005d6cbcf740ab582fa765808485752816d875e9237853198cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 64085f995aaaab9368dc59002281d3119855077260a5acc4da92b34981695b81fc21e115ddb6793b97f0f70d3ae867f24ca55720c0a55d02efccd709691b1556
|
7
|
+
data.tar.gz: 7dfb282a4a22498eaba949f74bb3aad86c7d110cf8687b1f85ea09ae69a3fbc48133e0a6df1de632d11ecc7fdd83f5d9b7ab49289425ee1f2ff42874abe58c31
|
data/_includes/encrypted.html
CHANGED
@@ -26,12 +26,9 @@
|
|
26
26
|
<script src="//cdn.jsdelivr.net/gh/vitock/jsdelivr@0.1.1/js/md5.js"></script>
|
27
27
|
<script>
|
28
28
|
!function(){
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
const preFix = "{{prefix}}"
|
34
|
-
var encryptedContent = '{{ content | contentEncrypt:page, prefix}}'
|
29
|
+
const preFix = '{{encid}}';
|
30
|
+
const encid = preFix
|
31
|
+
var encryptedContent = '{{ content | encrypt_content:page, encid}}'
|
35
32
|
const nonceStr = encryptedContent.substring(0,16);
|
36
33
|
const msg = encryptedContent.substring(17)
|
37
34
|
|
@@ -132,15 +129,15 @@
|
|
132
129
|
}
|
133
130
|
{% else %}
|
134
131
|
function readKey(){
|
135
|
-
var key =
|
132
|
+
var key = encid;
|
136
133
|
return localStorage.getItem(key)
|
137
134
|
}
|
138
135
|
function setKey(value){
|
139
|
-
var key =
|
136
|
+
var key = encid
|
140
137
|
return localStorage.setItem(key,value)
|
141
138
|
}
|
142
139
|
function clearKey() {
|
143
|
-
var key =
|
140
|
+
var key = encid
|
144
141
|
localStorage.removeItem(key)
|
145
142
|
}
|
146
143
|
var cachekey = readKey()
|
data/_layouts/post.html
CHANGED
@@ -15,8 +15,8 @@ layout: default
|
|
15
15
|
<a href="{{ site.baseurl }}/tags/{{ tag_name }}.html"><text><nobr>#{{ tag_name }}</nobr></text> </a>
|
16
16
|
{% endfor %}</span>
|
17
17
|
|
18
|
-
{%- capture
|
19
|
-
{%- if
|
18
|
+
{%- capture encid %}{{ "" | get_encrypt_id:page}}{% endcapture -%}
|
19
|
+
{%- if encid == '' -%}
|
20
20
|
{{ content }}
|
21
21
|
{% else %}
|
22
22
|
{%-include encrypted.html-%}
|
data/_sass/no-style-please.scss
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: no-style-please2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- vitock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.4.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.4.0
|
41
41
|
description:
|
42
42
|
email:
|
43
43
|
- r
|