Skip to content

Commit 4c88290

Browse files
committed
add gf version
1 parent 2c8ff06 commit 4c88290

8 files changed

Lines changed: 48357 additions & 11 deletions

File tree

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,15 @@ var renderOut = function(outFile,ljs){
2727
});
2828
};
2929

30+
var time = (+new Date());
31+
3032
var ljs = `// @require https://raw.githubusercontent.com/jae-jae/l.js/master/userjs/l.userjs.min.js
31-
// @require https://gist.githubusercontent.com/jae-jae/35a1833079d26e6c9d9c6d5bed982353/raw/userjs-base.js`;
33+
// @require https://gist.githubusercontent.com/jae-jae/35a1833079d26e6c9d9c6d5bed982353/raw/userjs-base.js
34+
// @resource uiJs https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.js?_=${time}`;
3235

3336
var ljs_GF = `// @require https://greasyfork.org/scripts/23419-l-js/code/ljs.js
34-
// @require https://greasyfork.org/scripts/23420-userjs-base-js/code/userjs-basejs.js`;
37+
// @require https://greasyfork.org/scripts/23420-userjs-base-js/code/userjs-basejs.js
38+
// @resource uiJs https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.gf.js?_=${time}`;
3539

3640

3741
renderOut('./dist/show-site-all-userjs.user.js',ljs);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
ui:"./src/main.js"
77
},
88
output: {
9-
path: __dirname + '/dist',
9+
path: __dirname + '/../dist',
1010
filename: "[name].js"
1111
},
1212
module: {

build/webpack.gf.config.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
var webpack = require('webpack');
2+
var CopyWebpackPlugin = require('copy-webpack-plugin');
3+
4+
module.exports = {
5+
entry: {
6+
ui:"./src/main.js"
7+
},
8+
output: {
9+
path: __dirname + '/../dist',
10+
filename: "[name].gf.js"
11+
},
12+
module: {
13+
rules: [
14+
{
15+
test: /\.js$/,
16+
exclude: /node_modules/,
17+
loader: "babel-loader"
18+
},
19+
{
20+
test:/\.vue$/,
21+
loader: "vue-loader"
22+
},
23+
{
24+
test: /\.css$/,
25+
use: [ 'style-loader', 'css-loader' ]
26+
},
27+
{
28+
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
29+
loader: 'url-loader'
30+
},
31+
{
32+
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
33+
loader: 'url-loader'
34+
}
35+
]
36+
},
37+
plugins: [
38+
39+
]
40+
}

dist/show-site-all-userjs.gf.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
// @include *
2121
// @exclude http://www.dev/Show-Site-All-UserJS/ui.html
2222
// @require https://greasyfork.org/scripts/23419-l-js/code/ljs.js
23-
// @require https://greasyfork.org/scripts/23420-userjs-base-js/code/userjs-basejs.js
24-
// @resource ui https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.html?_=1538662801872
25-
// @resource uiJs https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.js?_=1538662801872
23+
// @require https://greasyfork.org/scripts/23420-userjs-base-js/code/userjs-basejs.js
24+
// @resource uiJs https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.gf.js?_=1538912782280
25+
// @resource ui https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.html?_=1538912782281
2626
// @resource count https://greasyfork.org/scripts/by-site.json
2727
// @grant GM_xmlhttpRequest
2828
// @grant GM_getResourceText

dist/show-site-all-userjs.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
// @include *
2121
// @exclude http://www.dev/Show-Site-All-UserJS/ui.html
2222
// @require https://raw.githubusercontent.com/jae-jae/l.js/master/userjs/l.userjs.min.js
23-
// @require https://gist.githubusercontent.com/jae-jae/35a1833079d26e6c9d9c6d5bed982353/raw/userjs-base.js
24-
// @resource ui https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.html?_=1538662801871
25-
// @resource uiJs https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.js?_=1538662801871
23+
// @require https://gist.githubusercontent.com/jae-jae/35a1833079d26e6c9d9c6d5bed982353/raw/userjs-base.js
24+
// @resource uiJs https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.js?_=1538912782280
25+
// @resource ui https://raw.githubusercontent.com/jae-jae/Show-Site-All-UserJS/master/dist/ui.html?_=1538912782280
2626
// @resource count https://greasyfork.org/scripts/by-site.json
2727
// @grant GM_xmlhttpRequest
2828
// @grant GM_getResourceText

0 commit comments

Comments
 (0)