-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #964 from NotAProton/ui
Mv3: Remove UIkit and revamp pages with FastForward CSS
- Loading branch information
Showing
15 changed files
with
537 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"singleQuote": true | ||
"singleQuote": true, | ||
"bracketSameLine": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<div align="center"> | ||
<img src="https://avatars.githubusercontent.com/u/88992224?s=200&v=4" width="128" /> | ||
<h1> FastForward </h1> | ||
<p> Don't waste your time with compliance. FastForward automatically skips annoying link shorteners. </p> | ||
|
||
|
||
|
||
[<img src="https://img.shields.io/github/actions/workflow/status/fastforwardteam/fastforward/main.yml?branch=main&label=Builds&style=for-the-badge" />](https://github.com/FastForwardTeam/FastForward/blob/main/.github/workflows/main.yml) | ||
<a href="https://discord.gg/RSAf7b5njt" target="_blank"> <img alt="Discord" src="https://img.shields.io/discord/876622516607656006?label=Our%20Discord&logo=discord&style=for-the-badge"> </a> | ||
<br> <br> | ||
<a href="https://github.com/FastForwardTeam/FastForward#why-is-fastforward-no-longer-on-the-chrome-web-store"><img src="https://user-images.githubusercontent.com/585534/107280622-91a8ea80-6a26-11eb-8d07-77c548b28665.png" alt="Get FastForward on Chromium based browsers" width="126px"></a> | ||
<a href="https://microsoftedge.microsoft.com/addons/detail/fastforward/ldcclmkclhomnpcnccgbgleikchbnecl"><img src="https://user-images.githubusercontent.com/585534/107280673-a5ece780-6a26-11eb-9cc7-9fa9f9f81180.png" alt="Get FastForward on Microsoft Edge" width="126px"></a> | ||
<a href="https://addons.mozilla.org/firefox/addon/fastforwardteam/"><img src="https://user-images.githubusercontent.com/585534/107280546-7b9b2a00-6a26-11eb-8f9f-f95932f4bfec.png" alt="Get FastForward for Firefox" width="126px"></a> | ||
</div> | ||
|
||
# FastForward Contributors | ||
|
||
Thanks to everyone who helps make FastForward: | ||
|
||
- The [code contributors](https://github.com/FastForwardTeam/FastForward/graphs/contributors) right here at Github | ||
- The [website devs](https://github.com/FastForwardTeam/Website/graphs/contributors) | ||
- The translators over at [Crowdin](https://crowdin.com/project/fastforward) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,5 @@ | ||
const brws=(typeof browser=="undefined"?chrome:browser) | ||
document.documentElement.setAttribute("dir",brws.i18n.getMessage("@@bidi_dir")) | ||
if(window.matchMedia("(prefers-color-scheme: dark)").matches) | ||
{ | ||
document.documentElement.className="uk-light uk-background-secondary" | ||
} | ||
let link=document.createElement("link") | ||
link.rel="stylesheet" | ||
link.href="uikit/uikit-"+brws.i18n.getMessage("@@bidi_dir")+".css" | ||
document.head.appendChild(link) | ||
let style=document.createElement("style") | ||
style.textContent="p{font-size:1rem}" | ||
document.head.appendChild(style) | ||
const timer=(message,secondsLeft,cancelable,callback)=>{ | ||
if(secondsLeft>=0) | ||
{ | ||
const div=document.getElementById("timer"), | ||
tid=setInterval(()=>{ | ||
secondsLeft-- | ||
tick() | ||
},1000), | ||
p=div.querySelector("p"), | ||
brws=(typeof browser=="undefined"?chrome:browser), | ||
cancel=()=>{ | ||
clearInterval(tid) | ||
titleElm.textContent=title | ||
div.classList.add("uk-hidden") | ||
}, | ||
tick=()=>{ | ||
if(secondsLeft<=0) | ||
{ | ||
cancel() | ||
callback() | ||
return | ||
} | ||
titleElm.textContent="("+secondsLeft+") "+title | ||
if(secondsLeft==1) | ||
{ | ||
p.textContent=brws.i18n.getMessage(message+"Singular")+" " | ||
} | ||
else | ||
{ | ||
p.textContent=brws.i18n.getMessage(message).replace("%",secondsLeft)+" " | ||
} | ||
if(cancelable) | ||
{ | ||
let a=document.createElement("a") | ||
a.href="#" | ||
a.onclick=cancel | ||
a.textContent=brws.i18n.getMessage("cancel") | ||
p.appendChild(a) | ||
} | ||
} | ||
div.classList.remove("uk-hidden") | ||
tick() | ||
return tid | ||
} | ||
} | ||
const brws = typeof browser == 'undefined' ? chrome : browser; | ||
document.documentElement.setAttribute( | ||
'dir', | ||
brws.i18n.getMessage('@@bidi_dir') | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.