mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-09-28 18:53:13 +00:00
Compare commits
29 commits
Author | SHA1 | Date | |
---|---|---|---|
787d5b1c37 | |||
58a38460f9 | |||
02c0594509 | |||
552e65520d | |||
af6cf59fdd | |||
7fcbc7c039 | |||
fe15a1633f | |||
07b6a8d8bf | |||
afee3205dc | |||
0674268548 | |||
be749ff31f | |||
207dff9e67 | |||
b2fc048450 | |||
a771b26952 | |||
2fc1134124 | |||
6ee91fbb25 | |||
072ece28cd | |||
e7a48b467f | |||
0ba765e181 | |||
8f75c8d315 | |||
e67eb36443 | |||
ffef920411 | |||
99760d2eb7 | |||
dc58ac8532 | |||
f91dfc4ba7 | |||
75bc6636b2 | |||
eecd3133b8 | |||
06682d3222 | |||
6c286150fa |
|
@ -1,5 +1,5 @@
|
||||||
var vendorCopy = [
|
var vendorCopy = [
|
||||||
'jquery/jquery.min.js',
|
'jquery/dist/jquery.min.js',
|
||||||
|
|
||||||
'fancybox/source/jquery.fancybox.pack.js',
|
'fancybox/source/jquery.fancybox.pack.js',
|
||||||
'fancybox/source/helpers/jquery.fancybox-media.js',
|
'fancybox/source/helpers/jquery.fancybox-media.js',
|
||||||
|
|
|
@ -55,3 +55,9 @@ npm run lint
|
||||||
```
|
```
|
||||||
grunt bump
|
grunt bump
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Запустить сборку расширения браузером:
|
||||||
|
|
||||||
|
```
|
||||||
|
/bin/bash pack_chromium.sh /usr/bin/chromium /path/to/repository/chrome_point_plus /path/to/private/key.pem
|
||||||
|
```
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "chrome-point-plus",
|
"name": "chrome-point-plus",
|
||||||
"version": "1.36.3",
|
"version": "1.42.1",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Alexey Skobkin"
|
"Alexey Skobkin"
|
||||||
],
|
],
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
"chrome_point_plus/vendors/**"
|
"chrome_point_plus/vendors/**"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": "~1.10.1",
|
"jquery": "~3",
|
||||||
"fancybox": "~2.1.5",
|
"fancybox": "~2.1.5",
|
||||||
"markitup": "~1.1.14",
|
"markitup": "~1.1.14",
|
||||||
"soundcloud": "git@github.com:soundcloud/Widget-JS-API.git"
|
"soundcloud": "git@github.com:soundcloud/Widget-JS-API.git"
|
||||||
|
|
|
@ -50,9 +50,6 @@
|
||||||
"option_fancybox_bind_images_to_one_flow": {
|
"option_fancybox_bind_images_to_one_flow": {
|
||||||
"message": "Bind all images to one Fancybox gallery"
|
"message": "Bind all images to one Fancybox gallery"
|
||||||
},
|
},
|
||||||
"option_fancybox_smart_hints": {
|
|
||||||
"message": "Generate image caption from tags"
|
|
||||||
},
|
|
||||||
"option_images_load_original": {
|
"option_images_load_original": {
|
||||||
"message": "Load original images instead of thumbnails"
|
"message": "Load original images instead of thumbnails"
|
||||||
},
|
},
|
||||||
|
@ -116,6 +113,12 @@
|
||||||
"option_ajax_comments": {
|
"option_ajax_comments": {
|
||||||
"message": "Send comments via AJAX (CTRL+Enter)"
|
"message": "Send comments via AJAX (CTRL+Enter)"
|
||||||
},
|
},
|
||||||
|
"option_right_panel": {
|
||||||
|
"message": "Right side panel"
|
||||||
|
},
|
||||||
|
"option_right_panel_to_unread": {
|
||||||
|
"message": "\"Go to unread comment\" button"
|
||||||
|
},
|
||||||
"option_fluid_layout": {
|
"option_fluid_layout": {
|
||||||
"message": "Fluid layout"
|
"message": "Fluid layout"
|
||||||
},
|
},
|
||||||
|
@ -177,6 +180,9 @@
|
||||||
"option_other_move_all_to_menu":{
|
"option_other_move_all_to_menu":{
|
||||||
"message": "Move \"All posts\" to left menu"
|
"message": "Move \"All posts\" to left menu"
|
||||||
},
|
},
|
||||||
|
"option_other_remove_fucking_button":{
|
||||||
|
"message": "Remove the fucking button"
|
||||||
|
},
|
||||||
"option_other_post_draft_save":{
|
"option_other_post_draft_save":{
|
||||||
"message": "Save post drafts"
|
"message": "Save post drafts"
|
||||||
},
|
},
|
||||||
|
|
|
@ -50,9 +50,6 @@
|
||||||
"option_fancybox_bind_images_to_one_flow": {
|
"option_fancybox_bind_images_to_one_flow": {
|
||||||
"message": "Связать все картинки в одну галерею Fancybox"
|
"message": "Связать все картинки в одну галерею Fancybox"
|
||||||
},
|
},
|
||||||
"option_fancybox_smart_hints": {
|
|
||||||
"message": "Генерировать подписи к картинкам из тегов"
|
|
||||||
},
|
|
||||||
"option_images_load_original": {
|
"option_images_load_original": {
|
||||||
"message": "Загружать оригиналы вместо миниатюр"
|
"message": "Загружать оригиналы вместо миниатюр"
|
||||||
},
|
},
|
||||||
|
@ -116,6 +113,12 @@
|
||||||
"option_ajax_comments": {
|
"option_ajax_comments": {
|
||||||
"message": "Отправка комментариев через AJAX (CTRL+Enter)"
|
"message": "Отправка комментариев через AJAX (CTRL+Enter)"
|
||||||
},
|
},
|
||||||
|
"option_right_panel": {
|
||||||
|
"message": "Боковая панель справа"
|
||||||
|
},
|
||||||
|
"option_right_panel_to_unread": {
|
||||||
|
"message": "Кнопка \"Перейти к непрочитанному\""
|
||||||
|
},
|
||||||
"option_fluid_layout": {
|
"option_fluid_layout": {
|
||||||
"message": ""Резиновая" вёрстка (растянуть сайт по горизонтали)"
|
"message": ""Резиновая" вёрстка (растянуть сайт по горизонтали)"
|
||||||
},
|
},
|
||||||
|
@ -177,6 +180,9 @@
|
||||||
"option_other_move_all_to_menu":{
|
"option_other_move_all_to_menu":{
|
||||||
"message": "Переместить \"Всё подряд\" в левое меню"
|
"message": "Переместить \"Всё подряд\" в левое меню"
|
||||||
},
|
},
|
||||||
|
"option_other_remove_fucking_button":{
|
||||||
|
"message": "Убрать ёбаную кнопку"
|
||||||
|
},
|
||||||
"option_other_post_draft_save":{
|
"option_other_post_draft_save":{
|
||||||
"message": "Сохранение черновика поста"
|
"message": "Сохранение черновика поста"
|
||||||
},
|
},
|
||||||
|
|
28
chrome_point_plus/css/modules/side_panel.css
Normal file
28
chrome_point_plus/css/modules/side_panel.css
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
#pp-right-panel {
|
||||||
|
width: 32px;
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
right: 3px;
|
||||||
|
opacity: .3;
|
||||||
|
transition: opacity 500ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pp-right-panel:hover {
|
||||||
|
opacity: 1;
|
||||||
|
transition: opacity 500ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pp-right-panel #pp-go-to-unread {
|
||||||
|
background-image: url("/img/menu-my.png");
|
||||||
|
height: 32px;
|
||||||
|
width: 32px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pp-right-panel span#pp-unread-count {
|
||||||
|
position: relative;
|
||||||
|
top: 7px;
|
||||||
|
left: 11px;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
|
@ -124,7 +124,7 @@ div#markItUpText-input {
|
||||||
right: 5px;
|
right: 5px;
|
||||||
top: 5px;
|
top: 5px;
|
||||||
display: none;
|
display: none;
|
||||||
background-image: url("//point.im/img/btn-edit.png");
|
background-image: url('//point.im/img/btn-edit.png');
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
@ -216,3 +216,44 @@ div#markItUpText-input {
|
||||||
background-position: 0 0;
|
background-position: 0 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* "All" link in left menu */
|
||||||
|
#pp-left-menu-all {
|
||||||
|
/* Opened Lock icon from default point.im icon set */
|
||||||
|
background-image: url('/img/icon-private-inactive.png') !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Highlight post with new comments */
|
||||||
|
.pp-post-unread {
|
||||||
|
background-color: #EEFFEE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Video from direct links */
|
||||||
|
.pp-video-player {
|
||||||
|
display: block;
|
||||||
|
max-width: 95%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Audio from direct links */
|
||||||
|
.pp-audio-player {
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Coub embedded video */
|
||||||
|
.pp-video-player-coub {
|
||||||
|
max-width: 640px;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* New posts and comments auto refresh in left menu by @NokitaKaze */
|
||||||
|
.pp-left-menu-refreshed {
|
||||||
|
background-color: #f2ebee;
|
||||||
|
color: #7c3558;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pp-iframe-unread-refresh {
|
||||||
|
width: 600px;
|
||||||
|
height: 300px;
|
||||||
|
display: none;
|
||||||
|
}
|
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "Point+",
|
"name": "Point+",
|
||||||
"version": "1.36.3",
|
"version": "1.42.1",
|
||||||
"default_locale": "ru",
|
"default_locale": "ru",
|
||||||
"author": "__MSG_ext_author__",
|
"author": "__MSG_ext_author__",
|
||||||
"homepage_url": "https://bitbucket.org/skobkin/chrome_point_plus",
|
"homepage_url": "https://bitbucket.org/skobkin/chrome_point_plus",
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
{
|
{
|
||||||
"matches": ["http://*.point.im/*", "https://*.point.im/*"],
|
"matches": ["http://*.point.im/*", "https://*.point.im/*"],
|
||||||
"js": [
|
"js": [
|
||||||
"vendor/jquery/jquery.min.js",
|
"vendor/jquery/dist/jquery.min.js",
|
||||||
|
|
||||||
"js/options-manager.js",
|
"js/options-manager.js",
|
||||||
"js/message-sender.js",
|
"js/message-sender.js",
|
||||||
|
|
|
@ -11,10 +11,10 @@ function Booru($links, options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Откуда тянуть картинки
|
* Base URL of gelbooru picture API (@NokitaKaze)
|
||||||
* @type {String}
|
* @type {String}
|
||||||
*/
|
*/
|
||||||
Booru.baseUrl = 'https://api.kanaria.ru/point/get_booru_picture.php';
|
Booru.baseUrl = 'https://evidell.xyz/get_booru_picture.php';
|
||||||
|
|
||||||
/* jshint maxlen:false */
|
/* jshint maxlen:false */
|
||||||
Booru.services = {
|
Booru.services = {
|
||||||
|
|
|
@ -40,11 +40,6 @@
|
||||||
<input type="checkbox" name="option-fancybox-bind-images-to-one-flow">
|
<input type="checkbox" name="option-fancybox-bind-images-to-one-flow">
|
||||||
<span data-i18n="option_fancybox_bind_images_to_one_flow"></span>
|
<span data-i18n="option_fancybox_bind_images_to_one_flow"></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label class="option-node">
|
|
||||||
<input type="checkbox" name="option-fancybox-smart-hints">
|
|
||||||
<span data-i18n="option_fancybox_smart_hints"></span>
|
|
||||||
</label>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<label class="option-node">
|
<label class="option-node">
|
||||||
|
@ -155,6 +150,16 @@
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="option-node">
|
||||||
|
<input type="checkbox" name="option-right-panel" id="option-right-panel">
|
||||||
|
<label for="option-right-panel" data-i18n="option_right_panel"></label>
|
||||||
|
|
||||||
|
<label class="option-node">
|
||||||
|
<input type="checkbox" name="option-right-panel-to-unread">
|
||||||
|
<span data-i18n="option_right_panel_to_unread"></span>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<label class="option-node">
|
<label class="option-node">
|
||||||
<input type="checkbox" name="option-fluid-layout">
|
<input type="checkbox" name="option-fluid-layout">
|
||||||
<span data-i18n="option_fluid_layout"></span>
|
<span data-i18n="option_fluid_layout"></span>
|
||||||
|
@ -232,6 +237,11 @@
|
||||||
<span data-i18n="option_other_move_all_to_menu"></span>
|
<span data-i18n="option_other_move_all_to_menu"></span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
<label class="option-node">
|
||||||
|
<input type="checkbox" name="option-other-remove-fucking-button">
|
||||||
|
<span data-i18n="option_other_remove_fucking_button"></span>
|
||||||
|
</label>
|
||||||
|
|
||||||
<label class="option-node">
|
<label class="option-node">
|
||||||
<input type="checkbox" name="option-other-post-draft-save">
|
<input type="checkbox" name="option-other-post-draft-save">
|
||||||
<span data-i18n="option_other_post_draft_save"></span>
|
<span data-i18n="option_other_post_draft_save"></span>
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
auxiliary.org-netbeans-modules-css-prep.less_2e_compiler_2e_options=
|
|
||||||
auxiliary.org-netbeans-modules-css-prep.less_2e_enabled=false
|
|
||||||
auxiliary.org-netbeans-modules-css-prep.less_2e_mappings=/less:/css
|
|
||||||
auxiliary.org-netbeans-modules-css-prep.sass_2e_compiler_2e_options=
|
|
||||||
auxiliary.org-netbeans-modules-css-prep.sass_2e_enabled=false
|
|
||||||
auxiliary.org-netbeans-modules-css-prep.sass_2e_mappings=/scss:/css
|
|
||||||
auxiliary.org-netbeans-modules-javascript2-requirejs.enabled=false
|
|
||||||
auxiliary.org-netbeans-modules-web-clientproject-api.js_2e_libs_2e_folder=node_modules/bower/node_modules/inquirer/node_modules/rx/src/core/linq/observable
|
|
||||||
browser.autorefresh.Chrome.INTEGRATED=true
|
|
||||||
browser.highlightselection.Chrome.INTEGRATED=true
|
|
||||||
config.folder=
|
|
||||||
file.reference.src-chrome_point_plus=.
|
|
||||||
files.encoding=UTF-8
|
|
||||||
grunt.action.build=
|
|
||||||
site.root.folder=${file.reference.src-chrome_point_plus}
|
|
||||||
start.file=chrome_point_plus/options.html
|
|
||||||
test.folder=
|
|
||||||
web.context.root=/file:///chrome_point_plus
|
|
|
@ -1,9 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project xmlns="http://www.netbeans.org/ns/project/1">
|
|
||||||
<type>org.netbeans.modules.web.clientproject</type>
|
|
||||||
<configuration>
|
|
||||||
<data xmlns="http://www.netbeans.org/ns/clientside-project/1">
|
|
||||||
<name>chrome_point_plus</name>
|
|
||||||
</data>
|
|
||||||
</configuration>
|
|
||||||
</project>
|
|
8
pack_chromium.sh
Normal file
8
pack_chromium.sh
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
BROWSER_BINARY=$1
|
||||||
|
PATH_EXTENSION=$2
|
||||||
|
PATH_KEY=$3
|
||||||
|
|
||||||
|
echo "Packing extension using $BROWSER_BINARY and key from $PATH_KEY"
|
||||||
|
#echo "$BROWSER_BINARY --pack-extension=$PATH_EXTENSION --pack-extension-key=$PATH_KEY"
|
||||||
|
eval "$BROWSER_BINARY --pack-extension=$PATH_EXTENSION --pack-extension-key=$PATH_KEY"
|
2
pack_zip.sh
Normal file
2
pack_zip.sh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
zip -9 -r chrome_point_plus.zip chrome_point_plus
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "chrome-point-plus",
|
"name": "chrome-point-plus",
|
||||||
"version": "1.36.3",
|
"version": "1.42.1",
|
||||||
"description": "Chrome extension for point.im",
|
"description": "Chrome extension for point.im",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue