diff --git a/extensions/chromium/runet-censorship-bypass/assets/README.md b/extensions/chromium/runet-censorship-bypass/assets/README.md new file mode 100644 index 0000000..bf665b3 --- /dev/null +++ b/extensions/chromium/runet-censorship-bypass/assets/README.md @@ -0,0 +1,8 @@ +# Blue Ribbon Icon + +URL: http://www.iconsdb.com/icon-sets/cardboard-blue-icons/ribbon-12-icon.html + +# SVG Icons, emoji + +URL: https://github.com/jslegers/emoji-icon-font +Author: John Slegers aka jslegers \ No newline at end of file diff --git a/extensions/chromium/runet-censorship-bypass/assets/jslegers-emoji.svg b/extensions/chromium/runet-censorship-bypass/assets/jslegers-emoji.svg new file mode 100644 index 0000000..e0b89f2 --- /dev/null +++ b/extensions/chromium/runet-censorship-bypass/assets/jslegers-emoji.svg @@ -0,0 +1,2711 @@ + + + +question-circle-o + + + +question-circle + + + +digit-zero + + + +digit-one + + + +digit-two + + + +digit-three + + + +digit-four + + + +digit-five + + + +digit-six + + + +digit-seven + + + +digit-eight + + + +digit-nine + + + +letter-a + + + +letter-b + + + +letter-c + + + +letter-d + + + +letter-e + + + +letter-f + + + +letter-g + + + +letter-h + + + +letter-i + + + +letter-j + + + +letter-k + + + +letter-l + + + +letter-m + + + +letter-n + + + +letter-o + + + +letter-p + + + +letter-q + + + +letter-r + + + +letter-s + + + +letter-t + + + +letter-u + + + +letter-v + + + +letter-w + + + +letter-x + + + +letter-y + + + +letter-z + + + +chessboard + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +chess-white-pawn + + + +chess-black-pawn + + + +chess-white-knight + + + +chess-black-knight + + + +chess-white-bishop + + + +chess-black-bishop + + + +chess-white-rook + + + +chess-black-rook + + + +chess-white-queen + + + +chess-white-king + + + +chess-black-king + + + +chess-black-queen + + + +home + + + +enter + + + +previous-page + + + +next-page + + + +bookmark + + + +menu + + + +print-screen + + + +link + + + +anchor + + + +label + + + +key + + + +lock + + + +lock-open + + + +shield + + + +shield-with-cross + + + +pencil + + + +pen + + + +paperclip + + + +envelope + + + +four-corners + + + +gear-no-hub + + + +garbage-can + + + +newspaper + + + +calendar-month + + + +calendar-day + + + +bell + + + +forbidden + + + +no-entry + + + +contrast + + + +brightness + + + +globe-meridians + + + +bullseye + + + +alarm + + + +money-bag + + + +banknote + + + +currency-exchange + + + +droplet + + + +film + + + +electric-cord + + + +warning + + + +bolt + + + +fireworks + + + +animal-bug + + + +crown + + + +folder + + + +folder-open + + + +file + + + +file-text + + + +file-image + + + +picture + + + +copy + + + +scissors + + + +clipboard + + + +addressbook + + + +notebook + + + +phone-receiver + + + +bullhorn + + + +book + + + +book-open + + + +books + + + +creditcard + + + +notepad + + + +at + + + +stack-window + + + +maximize-window + + + +minimize + + + +cancel + + + +check + + + +checkbox-checked + + + +checkbox-partial + + + +checkbox-unchecked + + + +square + + + +hexagon + + + +pentagon + + + +radio-checked + + + +circle + + + +circle-open + + + +battery + + + +cabinet + + + +font-size + + + +palette + + + +lightbulb + + + +pill + + + +syringe + + + +fire + + + +explosion + + + +database + + + +suitcase + + + +inbox + + + +outbox + + + +search-right + + + +search-left + + + +volume-mute + + + +volume + + + +volume-low + + + +volume-high + + + +flag + + + +flag-open + + + +flag-checkered + + + +rotate-cw + + + +rotate-ccw-side + + + +rotate-ccw + + + +rotate-cw-side + + + +loop + + + +loop-alt + + + +shuffle + + + +arrow-forward + + + +arrow-undo + + + +arrow-reply + + + +arrow-redo + + + +arrow-left-right + + + +arrow-up-down + + + +caret-left + + + +caret-up + + + +caret-right + + + +caret-down + + + +circle-arrow-left + + + +circle-arrow-up + + + +circle-arrow-right + + + +circle-arrow-down + + + +arrow-right + + + +arrow-down-right + + + +arrow-down + + + +arrow-down-left + + + +arrow-left + + + +arrow-up-left + + + +arrow-up + + + +arrow-up-right + + + +thumbs-down + + + +thumbs-up + + + +point-left + + + +point-down + + + +point-right + + + +point-up + + + +plus + + + +minus + + + +multiply + + + +divide + + + + + +eject + + + +first + + + +backward + + + +play + + + +forward + + + +last + + + +pause + + + +stop + + + +record + + + +gender-female + + + + +gender-male + + + +gender-transgender + + + +gender-non-binary + + + +gender-male-female + + + + +gender-female-female + + + + + +gender-male-male + + + + + + +square-minus + + + +square-plus + + + +smiley + + + +smiley-happy + + + +smiley-grin + + + +smiley-cool + + + +smiley-sad + + + +smiley-evil + + + +currency-euro + + + +currency-pound + + + +currency-dollar + + + +yen + + + +peace-dove + + + +bouquet + + + +star-shooting + + + +ring + + + +close + + + +moon-full + + + +moon-first-quarter + + + +moon-waxing-gibbous + + + +moon-waning-crescent + + + +moon-waxing-crescent + + + +moon-waning-gibbous + + + +moon-last-quarter + + + +moon-new + + + +water-wave + + + +kiss + + + +diamond + + + +mushroom + + + +star-circled + + + +speech-bubble + + + +smoking + + + +smoking-forbidden + + + +church + + + +convenience-store + + + +school + + + +hotel + + + +building + + + +factory + + + +castle + + + +circus + + + +tent + + + +fuel-pump + + + +airplane + + + +globe2 + + + +fountain + + + +left-luggage + + + +beach + + + +world-map + + + +balloon + + + + +performing-arts + + + +ferris-wheel + + + +rollercoaster + + + +slot-machine + + + +cinema + + + +film-reel + + + +die + + + +ticket + + + +tennis + + + +football-soccer + + + +baseball + + + +football-american + + + +billiards + + + +bowling + + + +medal-military + + + +medal-sports + + + +trophy + + + +music-quarter-note + + + +music-eighth-note + + + +music-eigth-notes + + + +music-sixteenth-notes + + + +g-clef + + + +piano + + + +music-violin + + + +guitar + + + +saxophone + + + +music-trumpet + + + +sandals + + + +high-heeled-shoes + + + +outfit-necktie + + + +outfit-shirt + + + +outfit-dress + + + +outfit-bikini + + + +handbag + + + +purse + + + +lipstick + + + +sushi + + + +rice-ball + + + +chicken-leg + + + +lollipop + + + +candy + + + +donut + + + +fries + + + +cooking + + + + + + + + +drink-coffee + + + +steaming-bowl + + + +food-rice + + + +pot-food + + + +food-spaghetti + + + +food-chicken + + + +food-hamburger + + + +cake + + + +bread + + + +lemon + + + +apple + + + +pear + + + +tomato3 + + + +grapes + + + +food-pizza + + + +gingerbread + + + +food-ice-cream + + + +drink-tropical + + + +drink-cocktail + + + +drink-beer + + + +drink-wine + + + +pie-chart-reverse + + + +pie-chart + + + +chart + + + +chart-up + + + +chart-down + + + +chart-line + + + +bank + + + +movie + + + +motorbike + + + +car-front + + + +bus-front + + + +bicycle + + + +car + + + +bus + + + +truck + + + +rocket + + + +telescope + + + +satellite-disk + + + +dna + + + +microscope + + + +chair + + + +monitor + + + +phone-mobile + + + +pc-desktop + + + +pc-old + + + +laptop + + + +computer-network + + + +hard-disk + + + +television + + + +pager + + + +projector + + + +photo-camera-flash + + + +photo-camera + + + +video-camera + + + +camera-movie + + + +music-player + + + +radio + + + +phone + + + +printer + + + +tape + + + +mouse + + + +videogame + + + +joystick + + + +keyboard + + + +keyboard-wireless + + + +floppy + + + +disk + + + +headphone + + + +calculator + + + +animal-goat + + + +animal-bactrian-camel + + + +animal-dromedary-camel + + + +animal-cow + + + +animal-horse + + + +animal-cat + + + +animal-rabbit + + + +animal-rooster + + + +animal-pig + + + +animal-dolphin + + + +snake + + + +animal-snail + + + +black-florette + + + +florette + + + +flower + + + +christmas-tree + + + +tree-pine + + + +tree + + + +tree-palm + + + +cactus + + + +herb + + + +leaf + + + +maple-leaf + + + +spider + + + +animal-ant + + + +spider7-web + + + +paw-prints + + + +footprints + + + +pedestrian + + + +dancing + + + +swimming + + + +weightlifting + + + +ice-skater + + + + + + + +skier + + + +snowboarding + + + +running + + + +bicyclist + + + +wheelchair + + + +restroom + + + + + + + +woman-and-woman + + + + + + +man-and-woman + + + + + + +man-and-man + + + + + + +family + + + +baby + + + +eye + + + +ear + + + +hand + + + +hand-fist + + + +user + + + +users + + + +construction-worker + + + +passport-control + + + +guard + + + +spy + + + +face-man + + + +face-woman + + + +face-boy + + + +face-girl + + + +face-baby + + + +face-callcenter + + + +face-princess + + + +face-old-chinese-man + + + +face-man-with-turban + + + +face-santa-claus + + + +snowman + + + +panda + + + +face-kitty + + + +imp + + + +face-monkey + + + +face-bear + + + +face-hamster + + + +face-chihuahua + + + +alien + + + +skull + + + +ghost + + + +comet + + + +star-eight-points + + + +snowflake + + + +rainbow + + + +sun + + + +star + + + +star-open + + + +ace-of-diamonds + + + +ace-of-clubs + + + +ace-of-spades + + + +ace-of-hearts + + + +diamonds + + + +clubs + + + +spades + + + +heart + + + +heart-broken + + + +heart-beating + + + +heart-ribbon + + + +heart-open + + + +heart-tilted + + + +hearts + + + +heart-with-arrow + + + +clock + + + +stopwatch + + + +watch + + + +target + + + +envelope-stamped + + + +phone-location + + + +graduation + + + +gift + + + +tophat + + + +eyeglasses + + + +sunglasses + + + +jack-o-lantern + + + +umbrella + + + +headstone + + + +death + + + +skull-and-bones + + + +coffin + + + +bomb + + + +helm + + + +crosshairs + + + +traffic-light + + + +candle + + + +baby-bottle + + + +pushpin + + + +microphone + + + +flashlight + + + +key-alt + + + +dagger + + + +pistol + + + +pick + + + + +wrench + + + +hammer + + + +ruler2 + + + +ruler + + + +hourglass + + + +knife + + + +fork-knife + + + +fork-knife-plate + + + +nut-and-bolt + + + +gear + + + +hammer-wrench + + + +hammer-and-pick + + + +crossed-swords + + + +permanent-paper + + + +infinity + + + +command + + + +retrograde + + + +aleph + + + +omega + + + +registered + + + +copyright + + + +at-symbol + + + +question-mark + + + +exclamation-mark + + + +brace-left + + + +brace-right + + + +parenthesis-left + + + +parenthesis-right + + + +square-bracket-left + + + +square-bracket-right + + + +percent + + + +perthousand + + + +ampersand + + + +asterisk-five + + + +number + + + +asterisk-six + + + +scales + + + +recycle + + + +cross-pommee + + + +cloud + + + +cross-of-jerusalem + + + +maltese-cross + + + +cross-orthodox + + + +chi-rho + + + +ankh + + + +latin-cross + + + +latin-cross-outline + + + +celtic-cross + + + +cross-of-lorraine + + + + + +star-of-david + + + +star-and-crescent + + + +farsi + + + + + + +khanda + + + +temple + + + +peace + + + +shamrock + + + +four-leaf-clover + + + +wheel-of-dharma + + + + + + + + + + + + +om + + + +swastika-right + + + +swastika-left + + + +pentagram + + + +pentagram-inverted + + + +radiation + + + + + + +biohazard + + + +atom + + + +caduceus + + + +asclepius + + + + +hammer-sickle + + + + + +tao + + + +fleur-de-lis + + + +letter-A + + + +letter-B + + + +letter-C + + + +letter-D + + + +letter-E + + + +letter-F + + + +letter-G + + + +letter-H + + + +letter-I + + + +letter-J + + + +letter-K + + + +letter-L + + + +letter-M + + + +letter-N + + + +letter-O + + + +letter-P + + + +letter-Q + + + +letter-R + + + +letter-S + + + +letter-T + + + +letter-U + + + +letter-V + + + +letter-W + + + +letter-X + + + +letter-Y + + + +letter-Z + + + +web-twitter + + + +web-facebook + + + +web-tumblr + + + +web-linkedin + + + +web-googleplus + + + +youtube + + + +web-stumbleupon + + + +web-behance + + + +web-mixi + + + +web-delicious + + + +web-sina-weibo + + + +web-picassa + + + +web-picasa + + + +web-lastfm + + + +web-spotify + + + +web-joomla + + + +vk + + + +web-yelp + + + +web-vine + + + +web-rdio + + + +web-soundcloud + + + +lastfm + + + +web-foursquare + + + +web-vimeo + + + +web-circles + + + +web-pinterest + + + +digg + + + +web-flattr + + + +web-instagram + + + +web-renren + + + +web-flickr + + + +web-dribbble + + + +web-deviantart + + + +web-forrst + + + +web-stackoverflow + + + +web-github + + + +web-git + + + +web-reddit + + + +web-paypal + + + +web-skype + + + +web-vk + + + +web-google-drive + + + +web-qq + + + +web-dropbox + + + +web-steam + + + +web-evernote + + + +web-smashing + + + +web-blogger + + + +web-wordpress + + + +web-drupal + + + +browser-chrome + + + +browser-ie + + + +browser-safari + + + +browser-firefox + + + +browser-opera + + + +os-android + + + +os-windows + + + +os-apple + + + +linux + + + +pacman + + + +info + + + + + +loop-round + + + + + diff --git a/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-circle - inkscape.svg b/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-circle - inkscape.svg new file mode 100644 index 0000000..c8e9133 --- /dev/null +++ b/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-circle - inkscape.svg @@ -0,0 +1,61 @@ + + + + + + image/svg+xml + + + + + + + + + + + + diff --git a/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-circle.svg b/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-circle.svg new file mode 100644 index 0000000..865d100 --- /dev/null +++ b/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-circle.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-path-strokeless.svg b/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-path-strokeless.svg new file mode 100644 index 0000000..1b72435 --- /dev/null +++ b/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-path-strokeless.svg @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-path.svg b/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-path.svg new file mode 100644 index 0000000..c972f9b --- /dev/null +++ b/extensions/chromium/runet-censorship-bypass/assets/my-circled-information-path.svg @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/extensions/chromium/runet-censorship-bypass/gulpfile.js b/extensions/chromium/runet-censorship-bypass/gulpfile.js index 55963c0..41da081 100644 --- a/extensions/chromium/runet-censorship-bypass/gulpfile.js +++ b/extensions/chromium/runet-censorship-bypass/gulpfile.js @@ -19,8 +19,9 @@ const templatePlugin = (context) => through.obj(function(file, encoding, cb) { return cb(new PluginError(PluginName, 'Streams not supported!')); } else if (file.isBuffer()) { - const {keys, values} = Object.entries(context).reduce( (acc, [key, value]) => { + const {keys, values} = Object.keys(context).reduce( (acc, key) => { + const value = context[key]; acc.keys.push(key); acc.values.push(value); return acc; diff --git a/extensions/chromium/runet-censorship-bypass/package.json b/extensions/chromium/runet-censorship-bypass/package.json index 7daf769..e161dd3 100644 --- a/extensions/chromium/runet-censorship-bypass/package.json +++ b/extensions/chromium/runet-censorship-bypass/package.json @@ -3,7 +3,8 @@ "version": "0.0.19", "description": "Development tools for chromium extension", "scripts": { - "lint": "./node_modules/.bin/eslint ./src/**/*.js --ignore-pattern vendor" + "lint": "eslint ./src/**/*.js --ignore-pattern vendor", + "gulp": "gulp" }, "author": "Ilya Ig. Petrov", "license": "GPLv3", diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js b/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js index d3d726d..e34c5d3 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/35-pac-kitchen-api.js @@ -109,6 +109,7 @@ || Boolean(defaults[prop]) === Boolean(mods[prop]) ); + console.log('MODS', mods); Object.assign(this, defaults, mods); this.ifNoMods = ifAllDefaults ? true : false; @@ -149,7 +150,7 @@ this.excluded.push(host); } } - if (this.included && !this.filteredCustomsString) { + if (this.included.length && !this.filteredCustomsString) { throw new TypeError( 'Проксировать свои сайты можно только через свои прокси. Нет ни одного своего прокси, удовлетворяющего вашим требованиям!' ); @@ -214,11 +215,11 @@ } return res + ` - const originalProxyString = originalFindProxyForURL(url, host); - let originalProxyArray = originalProxyString.split(/(?:\\s*;\\s*)+/g).filter( (p) => p ); - if (originalProxyArray.every( (p) => /^DIRECT$/i.test(p) )) { + const pacProxyString = originalFindProxyForURL(url, host); + let pacProxyArray = pacProxyString.split(/(?:\\s*;\\s*)+/g).filter( (p) => p ); + if (pacProxyArray.every( (p) => /^DIRECT$/i.test(p) )) { // Directs only or null, no proxies. - return originalProxyString; + return pacProxyString; } return ` + function() { @@ -226,15 +227,15 @@ if (!pacMods.ifUsePacScriptProxies) { return '"' + pacMods.filteredCustomsString + '"'; } - let filteredOriginalsExp = 'originalProxyString'; + let filteredPacExp = 'pacProxyString'; if (pacMods.ifUseSecureProxiesOnly) { - filteredOriginalsExp = - 'originalProxyArray.filter( (p) => !p.toUpperCase().startsWith("HTTP ") ).join("; ")'; + filteredPacExp = + 'pacProxyArray.filter( (p) => !p.toUpperCase().startsWith("HTTP ") ).join("; ")'; } if ( !pacMods.filteredCustomsString ) { - return filteredOriginalsExp; + return filteredPacExp; } - return '"' + pacMods.filteredCustomsString + '; " + ' + filteredOriginalsExp; + return filteredPacExp + '"; ' + pacMods.filteredCustomsString + '"'; }() + ' + "; DIRECT";'; // Without DIRECT you will get 'PROXY CONN FAILED' pac-error. @@ -292,7 +293,6 @@ }, - keepCookedNowAsync(pacMods = mandatory(), cb = throwIfError) { if (typeof(pacMods) === 'function') { diff --git a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/choose-pac-provider/index.html b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/choose-pac-provider/index.html index de3c557..e0af068 100644 --- a/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/choose-pac-provider/index.html +++ b/extensions/chromium/runet-censorship-bypass/src/extension-common/pages/choose-pac-provider/index.html @@ -7,8 +7,9 @@ --ribbon-color: #4169e1; --blue-bg: dodgerblue; --default-grey: #bfbfbf; - max-width: 27em; + max-width: 28em; } + body { margin: 0; } @@ -45,6 +46,9 @@ li, li > * { vertical-align: middle; } + input[type="radio"], input[type="checkbox"] { + flex-shrink: 0; + } input[type="radio"], label { cursor: pointer; } @@ -205,34 +209,22 @@ /* INFO SIGNS */ .info-row { - display: table; - width: 100%; - position: relative; } - .info-sign { - font-size: 1.4em; - vertical-align: middle; - line-height: 100%; + .right-bottom-icon { margin-left: 0.1em; + vertical-align: bottom; } - .info-url { + .info-url, .info-url:hover { text-decoration: none; - - float: right; - text-align: right; - - line-height: normal !important; - vertical-align: top !important; } /* Source: https://jsfiddle.net/greypants/zgCb7/ */ .desc { - display: table-cell; text-align: right; color: var(--ribbon-color); cursor: help; - width: 1%; + padding-left: 0.3em; } .tooltip { display: none; @@ -265,13 +257,13 @@ right: 0; height: 0; } - /* This bridges the gap so you can mouse into the tooltip without it disappearing */ + /* This bridges the gap so you can mouse into the tooltip without it disappearing. */ .desc .tooltip:before { position: absolute; top: -1em; content: ""; display: block; - height: 1.6em; + height: 1.2em; left: 75%; width: calc(25% + 0.6em); } @@ -355,6 +347,14 @@ margin: 1em 0 1em 0; } + .hor-flex > input:not([type="button"]) { + align-self: flex-end; + } + .label-container { + flex-grow: 9; + padding-left: 0.3em; + } + /* STATUS */ #status-row { @@ -371,6 +371,25 @@ .other-version:hover { text-decoration: none; } + + @font-face { + font-family: "emoji"; + src:url("../lib/fonts/emoji.woff") format("woff"); + font-weight: normal; + font-style: normal; + } + .emoji { + font-family: "emoji"; + } + + svg.icon { + display: inline-block; + width: 1em; + height: 1em; + stroke-width: 0; + stroke: currentColor; + fill: currentColor; + } @@ -397,10 +416,16 @@
PAC-скрипт:
-
- Обновлялись: ... +
+
Обновлялись: ...
+
+ 🏋 + 🐌 +
@@ -416,7 +441,11 @@
    -
  1. +
  2. + +
@@ -445,10 +474,8 @@
-
+
Загрузка...
- 🏋︎ - 🐌︎