Skip to content

Commit f3b0bc4

Browse files
committed
2.0.3
Signed-off-by: magicoflolis <magicoflolis@gmail.com>
1 parent 3948432 commit f3b0bc4

10 files changed

Lines changed: 141 additions & 141 deletions

File tree

dist/extension/js/popup.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/extension/js/popup.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/magic-userjs.gf.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
// @exclude *://*myetherwallet.com/*
4949
// @require https://greasyfork.org/scripts/23419-l-js/code/ljs.js
5050
// @require https://greasyfork.org/scripts/23420-userjs-base-js/code/userjs-basejs.js
51-
// @resource uiJs https://github.com/magicoflolis/Userscript-Plus/raw/master/dist/ui.gf.js?_=1624491581416
52-
// @resource ui https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plus/dist/ui.html?_=1624491581417
51+
// @resource uiJs https://github.com/magicoflolis/Userscript-Plus/raw/master/dist/ui.gf.js?_=1624492218750
52+
// @resource ui https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plus/dist/ui.html?_=1624492218751
5353
// @resource count https://greasyfork.org/scripts/by-site.json
5454
// @resource adult https://sleazyfork.org/scripts/by-site.json
5555
// @grant GM_xmlhttpRequest

dist/magic-userjs.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
// @exclude *://*myetherwallet.com/*
4949
// @require https://cdn.jsdelivr.net/gh/jae-jae/l.js/userjs/l.userjs.min.js
5050
// @require https://greasyfork.org/scripts/23420-userjs-base-js/code/userjs-basejs.js
51-
// @resource uiJs https://github.com/magicoflolis/Userscript-Plus/raw/master/dist/ui.js?_=1624491581416
52-
// @resource ui https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plus/dist/ui.html?_=1624491581416
51+
// @resource uiJs https://github.com/magicoflolis/Userscript-Plus/raw/master/dist/ui.js?_=1624492218750
52+
// @resource ui https://cdn.jsdelivr.net/gh/magicoflolis/Userscript-Plus/dist/ui.html?_=1624492218750
5353
// @resource count https://greasyfork.org/scripts/by-site.json
5454
// @resource adult https://sleazyfork.org/scripts/by-site.json
5555
// @grant GM_xmlhttpRequest

dist/ui.gf.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui.gf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ui.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Table.vue

Lines changed: 129 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -54,149 +54,149 @@
5454

5555
</template>
5656
<script>
57-
import Tools from '../common/js/tools'
58-
import Info from './Info.vue'
59-
import Indicator from './Indicator.vue'
60-
export default {
61-
components: { Info, Indicator },
62-
mounted: function () {
63-
this.$Spin.show()
64-
Tools.getData((json) => {
65-
this.data = json
66-
this.originData = json
67-
this.count = this.data.length
68-
this.$Spin.hide()
69-
this.showBody = !this.showBody
70-
})
71-
},
72-
data: function () {
73-
return {
74-
isZH: Tools.isZH(),
75-
showSearchInput: false,
76-
searchInput: '',
77-
showBody: false,
78-
titleIcon: 'chevron-up',
79-
count: 0,
80-
columns: [{
81-
type: 'expand',
82-
width: 50,
83-
render: (h, params) => {
84-
return h(Info, {
85-
props: {
86-
row: params.row
57+
import Tools from '../common/js/tools'
58+
import Info from './Info.vue'
59+
import Indicator from './Indicator.vue'
60+
export default {
61+
components: { Info, Indicator },
62+
mounted: function () {
63+
this.$Spin.show()
64+
Tools.getData((json) => {
65+
this.data = json
66+
this.originData = json
67+
this.count = this.data.length
68+
this.$Spin.hide()
69+
this.showBody = !this.showBody
70+
})
71+
},
72+
data: function () {
73+
return {
74+
isZH: Tools.isZH(),
75+
showSearchInput: false,
76+
searchInput: '',
77+
showBody: false,
78+
titleIcon: 'chevron-up',
79+
count: 0,
80+
columns: [{
81+
type: 'expand',
82+
width: 50,
83+
render: (h, params) => {
84+
return h(Info, {
85+
props: {
86+
row: params.row
87+
}
88+
})
89+
}
90+
},
91+
{
92+
type: 'index',
93+
width: 50,
94+
align: 'center'
95+
},
96+
{
97+
title: this.$t('table.title'),
98+
key: 'name',
99+
width: '35%',
100+
ellipsis: false,
101+
render: (h, params) => {
102+
return h('span', {
103+
attrs: {
104+
title: params.row.description
105+
},
106+
style: {
107+
cursor: 'pointer'
108+
},
109+
on: {
110+
click: _ => {
111+
window.open(params.row.url)
87112
}
88-
})
89-
}
90-
},
91-
{
92-
type: 'index',
93-
width: 50,
94-
align: 'center'
95-
},
96-
{
97-
title: this.$t('table.title'),
98-
key: 'name',
99-
width: '35%',
100-
ellipsis: false,
101-
render: (h, params) => {
102-
return h('span', {
103-
attrs: {
104-
title: params.row.description
105-
},
106-
style: {
107-
cursor: 'pointer'
108-
},
109-
on: {
110-
click: _ => {
111-
window.open(params.row.url)
112-
}
113+
}
114+
}, params.row.name)
115+
}
116+
},
117+
{
118+
title: this.$t('table.author'),
119+
render: (h, params) => {
120+
return h('span', {
121+
attrs: {
122+
title: this.$t('table.authorTips', {name: params.row.user.name})
123+
},
124+
style: {
125+
cursor: 'pointer'
126+
},
127+
on: {
128+
click: _ => {
129+
window.open(params.row.user.url)
113130
}
114-
}, params.row.name)
115-
}
131+
}
132+
}, params.row.user.name)
133+
}
134+
},
135+
{
136+
title: this.$t('table.dailyInstalls'),
137+
width: 105,
138+
key: 'daily_installs',
139+
sortable: true
140+
},
141+
{
142+
title: this.$t('table.updatedTime'),
143+
width: 105,
144+
key: 'code_updated_at',
145+
render: (h, params) => {
146+
return h('span', Tools.timeagoFormat(params.row.code_updated_at))
116147
},
117-
{
118-
title: this.$t('table.author'),
119-
render: (h, params) => {
120-
return h('span', {
121-
attrs: {
122-
title: this.$t('table.authorTips', {name: params.row.user.name})
148+
sortable: true
149+
},
150+
{
151+
title: this.$t('table.action'),
152+
width: 100,
153+
key: 'code_url',
154+
align: 'center',
155+
render: (h, params) => {
156+
return h('div', [
157+
h('Button', {
158+
props: {
159+
type: 'primary',
160+
size: 'small',
161+
icon: 'ios-download-outline'
123162
},
124163
style: {
125-
cursor: 'pointer'
164+
marginRight: '5px'
126165
},
127166
on: {
128-
click: _ => {
129-
window.open(params.row.user.url)
167+
click: () => {
168+
this.$Message.info(this.$t('table.scriptInstalling'))
169+
Tools.installUserJs(params.row.code_url)
130170
}
131171
}
132-
}, params.row.user.name)
133-
}
134-
},
135-
{
136-
title: this.$t('table.dailyInstalls'),
137-
width: 105,
138-
key: 'daily_installs',
139-
sortable: true
140-
},
141-
{
142-
title: this.$t('table.updatedTime'),
143-
width: 105,
144-
key: 'code_updated_at',
145-
render: (h, params) => {
146-
return h('span', Tools.timeagoFormat(params.row.code_updated_at))
147-
},
148-
sortable: true
149-
},
150-
{
151-
title: this.$t('table.action'),
152-
width: 100,
153-
key: 'code_url',
154-
align: 'center',
155-
render: (h, params) => {
156-
return h('div', [
157-
h('Button', {
158-
props: {
159-
type: 'primary',
160-
size: 'small',
161-
icon: 'ios-download-outline'
162-
},
163-
style: {
164-
marginRight: '5px'
165-
},
166-
on: {
167-
click: () => {
168-
this.$Message.info(this.$t('table.scriptInstalling'))
169-
Tools.installUserJs(params.row.code_url)
170-
}
171-
}
172-
}, this.$t('table.install'))
173-
])
174-
}
172+
}, this.$t('table.install'))
173+
])
175174
}
176-
],
177-
originData: [ ],
178-
data: [ ]
179-
}
180-
},
181-
watch: {
182-
searchInput: function (val) {
183-
(val) ? (val = val.toLowerCase(),this.data = Tools.searcher(this.originData, val)) : (this.data = this.originData);
184175
}
185-
},
186-
methods: {
187-
getData (callback) {
188-
let host = 'pornhub.com'
189-
window.fetch(`https://greasyfork.org/scripts/by-site/${host}.json`).then((r) => {
190-
r.json().then((json) => {
191-
callback(json)
192-
})
176+
],
177+
originData: [ ],
178+
data: [ ]
179+
}
180+
},
181+
watch: {
182+
searchInput: function (val) {
183+
(val) ? (val = val.toLowerCase(),this.data = Tools.searcher(this.originData, val)) : (this.data = this.originData);
184+
}
185+
},
186+
methods: {
187+
getData (callback) {
188+
let host = 'pornhub.com'
189+
window.fetch(`https://greasyfork.org/scripts/by-site/${host}.json`).then((r) => {
190+
r.json().then((json) => {
191+
callback(json)
193192
})
194-
},
195-
open (url) {
196-
window.open(url)
197-
}
193+
})
194+
},
195+
open (url) {
196+
window.open(url)
198197
}
199198
}
199+
}
200200
</script>
201201

202202
<style>

src/userscript/components/Table.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<transition name="custom-classes-transition" enter-active-class="animated lightSpeedIn">
44
<div v-show="showTitle">
5-
<Card :bordered="false" :padding="0">
5+
<Card dis-hover :bordered="false" :padding="0">
66
<div slot="title" class="card-title">
77
<Icon :type="titleIcon"></Icon>
88
<span v-if="!showSearchInput" @click="bodySwitch">
@@ -183,7 +183,7 @@
183183
watch: {
184184
showBody (val) {
185185
(val) ? (this.titleIcon = 'chevron-down',Tools.dispatchEvent('max')) : (this.titleIcon = 'chevron-up',Tools.dispatchEvent('min'))
186-
Tools.dispatchEvent('resize')
186+
// Tools.dispatchEvent('resize')
187187
// window.dispatchEvent(new Event('resize'))
188188
},
189189
searchInput: function (val) {

0 commit comments

Comments
 (0)