From ef26af1b060e5b6faac69cea93eb1eb29fdcd487 Mon Sep 17 00:00:00 2001 From: "jafar.akhondali" Date: Fri, 26 Jul 2019 15:49:57 +0430 Subject: [PATCH] Init --- .gitignore | 2 ++ LICENSE | 13 ++++++++++ README.md | 15 +++++++++++ WebExtension/contentScripts/removewarning.css | 3 +++ WebExtension/logo/icon_128.png | Bin 0 -> 10151 bytes WebExtension/manifest.json | 24 ++++++++++++++++++ 6 files changed, 57 insertions(+) create mode 100644 .gitignore create mode 100755 LICENSE create mode 100755 README.md create mode 100644 WebExtension/contentScripts/removewarning.css create mode 100644 WebExtension/logo/icon_128.png create mode 100755 WebExtension/manifest.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29eebb0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea/ +releases diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..dc0c342 --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2004 Sam Hocevar + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/README.md b/README.md new file mode 100755 index 0000000..9b05300 --- /dev/null +++ b/README.md @@ -0,0 +1,15 @@ +Github Restrictions Hider +=== +Nothing special here. This WebExtension just removes annoying yellow message that says we (countries that are under sanctions by US laws) are restricted to use Github. +We were a little excited to hear that Microsoft let's us create private repositories, but now our private repositories are disabled and we don't have even read access to them!! + +As a single person, all i can do now is to ignore your message, just like you ignored the freedom of open source. +# Install + +[FireFox MDN](https://addons.mozilla.org/) +[Chrome store](https://chrome.google.com/webstore/detail/pkconlgalehldobejjolennilngnmcnb/publish-accepted?hl=en-US) + +Icon from http://pluspng.com/png-110941.html + +## License +WTFPL – Do What the Fuck You Want to Public License. diff --git a/WebExtension/contentScripts/removewarning.css b/WebExtension/contentScripts/removewarning.css new file mode 100644 index 0000000..0566736 --- /dev/null +++ b/WebExtension/contentScripts/removewarning.css @@ -0,0 +1,3 @@ +header + div.flash.flash-full.js-notice.flash-warn{ + display: none; +} diff --git a/WebExtension/logo/icon_128.png b/WebExtension/logo/icon_128.png new file mode 100644 index 0000000000000000000000000000000000000000..2e077966851f026e9119645bf2bb999a96d8cb9d GIT binary patch literal 10151 zcmaKSbyQSe*zO_30f`X>29OxK85(Iuq$CFvBqWAL1f;u$kXDBpI))BuX%qnoL8PQX z#8Hqg$@%7Y|M=Frf82X&pV)itb@tl(eV^xf-&Y2D8dMZa6aWBFX=$n<2xa(xCy1DE z)v-9qArz#Js=BHGP@i(^(&h%?nH{N#&;@`%9zs170G$6<|2F{mzyM&=8UW-n0f50H zr`=G2@PW+sk%k(8|8FnoDtk+KbJJT(_u_5L9;+JXP z?}MwT%(mLO$D_f6127Rb!0iG0r^GWe!`1H$o9r3;co)7uTbOUgru9q@KO?sr(WKXe z)0)CnJcnJC*j%!Llho_GbvfPQM(R^ymhTwGk9n3$WJo0zzr(7&ni zD+ieY?H}#@gDixn^^ylQ@Bf z{mV~JfzZ~S^|73lOae#3)Ojt_HhtkB zZD&Xf8Ufez@;W4R(fZ8e!%fj{|K-kr3H#gnjL0^NT2rC(yg}KU{K6x{l2TGKGF7is z-Tb62FjB1Hnu%&g%4hu)+1=gUY|BBr`e6reTbBa`LBt~sLL(d~0FK~~db_zS#!3l| zu1CK?Yz95kbQVZ6>j}M*ntc{Dgw5cgeMNGUTA?ZAqH$cI(Q!QQx%5`M2vTP$8cdrq zxG=xKFq+@vusxsTnBV0z!J#`j^)0Ii;G5A1F0*;>zS3>!-V?Id8?m;whN$>?p#udeFz(Kt_hFMpS%-S#;VB zHEfKq;rm6;FD|5XB`AyA`&>pJ%SDON$3Srk^a;Wi@An$q7D92wJqt7QGb#`!vT!h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)7||oRDGF3q6Wu*cqZ;E{UR}O?RMI}q20Vmlol-FN>@=_#+Ec|gy+2xd`gM*U;gQ8?ElN21GFCMsnx=*BmW02XNS)K literal 0 HcmV?d00001 diff --git a/WebExtension/manifest.json b/WebExtension/manifest.json new file mode 100755 index 0000000..d971a2d --- /dev/null +++ b/WebExtension/manifest.json @@ -0,0 +1,24 @@ +{ + + "content_scripts": [ + { + "css": [ + "contentScripts/removewarning.css" + ], + "matches": [ + "https://github.com/*", + "http://github.com/*" + ], + "run_at": "document_start" + } + ], + "description": "Nothin special, Just removes the annoying yellow message that tells we are restricted because of US laws.", + "homepage_url": "https://github.com/JafarAkhondali/remove-github-restrictions-message", + "icons": { + "128": "logo/icon_128.png" + }, + "manifest_version": 2, + "name": "Hides restricted message of github", + "short_name": "Github Restricted Remover", + "version": "0.0.1" +}