GithubHelp home page GithubHelp logo

flaghunters / extra-flags-for-4chan Goto Github PK

View Code? Open in Web Editor NEW
45.0 16.0 65.0 397.01 MB

Extra Flags for 4chan boards, supports /int/, /sp/ and /pol/.

Home Page: https://flaghunters.github.io/Extra-Flags-for-4chan/

License: Other

extra-flags-for-4chan's Introduction

Extra Flags for 4chan.

Instructions for installing Extra Flags are at the link below:

https://flagtism.gitlab.io/Extra-Flags-for-4chan/

To add flags to the repo if you've been given the rights:

  1. Pull most recent master branch to prevent conflicts
  2. Copy desired flag PNG files into the proper folder locations
  3. Run php/flag-lister.bat if you use Windows, or php/flag-lister.sh if you use GNU+Linux
  4. Commit changes and push to master branch

extra-flags-for-4chan's People

Contributors

3paracetamol avatar anonymous423423 avatar ebinbuddha avatar flagslave avatar flagzzzz avatar johnsevier avatar kobaruon avatar loadletter avatar maluhia avatar masterautismo avatar montgomeryanon avatar polanddevcock avatar reddit1341 avatar sdjklag avatar tiikeri avatar whatisthisimnotgoodwithcomputers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

extra-flags-for-4chan's Issues

Change "Jakarta" to "Jakarta Raya"

Since ipinfo use "Jakarta Raya" instead "Jakarta", Jakarta region should use "Jakarta Raya" instead "Jakarta" so people wont confuse with it.

Filtering posts with certain flags

I asked the 4chan-x developer to possibly add this in but he said no so I'm asking here. There's a person who I see posting ISIS videos and he uses a flag from this script so I would like to filter him.

Fix flags for Chrome

Flags seem to be a bit off on Chrome
Firefox seems to be working fine for most people.

Missing flag for Winnipeg

Hey there, looking to attach a flag for Winnipeg in particular.
Attached is a 16x11 png of the flag.
winnipeg flag

Cuzco

cusco
Please add Cuzco flag

LA flag

if NYC has a flag, you should make one for LA, for california shitposting

Expanding to sp and possible pol

This is actually everthing that's needed to change.

/* fetch flags from db */
function resolveRefFlags() {

var boardID = window.location.pathname.split('/')[1];
console.log(boardID);

GM_xmlhttpRequest({
    method:     "POST",
    url:        "http://flaghunters.x10host.com/get_flags2.php",
    data:       "post_nrs=" + encodeURIComponent (postNrs)
                + "&" + "board=" + encodeURIComponent (boardID)
    ,
    headers:    {
        "Content-Type": "application/x-www-form-urlencoded"
    },
    onload: onFlagsLoad
});

}

Database and php ready too now, I've tested the files on get_flags2.php and post_flag2.php.
Have to go for now but I bumped into #11 again.
So we'll fix this tomorrow.

More flags

Lebanon ------------

North
north
South
south
Bekaa
bekaa
Mount Lebanon
mount lebanon

Italy-----------------
Rome (I know its not a subdivision but a lot of Italians were requesting it)
rome
Georgia-------------
South Ossetia
south ossetia
United States--------------

New York City (Was requested, not sure if it should be used though)
new york city
Turkey--------------
Sinop
sinop
Batman
batman

Edirne
edirne

Karaman
karaman

Van
van
Sakarya
sakarya
Yalova
yalova

Iraq------------
Erbil
erbil
Dohuk
dohuk
Sulaymaniyah
al-sulaymaniyah
netherlands--------
Amsterdam
ampsterdam
Ukraine--------
Donetsk Peoples Republic
donetsk
Luhans'k Peoples Republic
luhansk
Yemen--------
Houthis
houthis
Cyprus----------------
Buffer Zone
buffer zone

Major Cities

edit: I changed my mind, feels like it might get a bit too crazy.

Adding Welsh flags

Hopefully you could add these in :)

Anglesey
anglesey

Flintshire
flintshire

Glamorgan
glamorgan

Gwynedd
gwynedd

Meirionnydd
meirionnydd

Monmouthshire
monmouthshire

Pembrokeshire
pembrokeshire

Flag

Hi. Can you please add this flag for Baku, Azerbaijan?
Thanks in advance.
az-baku

New Regional Flags for Iceland

I have some 16x11 flags for Iceland that I just made. Don't know what else to say tbh, here they are:
kopavogur
reykjavik
akureyri
grindavik
hafnarfjordur

Not sure if that worked, I'll resend them if it didn't

A script for /ref/

@loadletter @ccd0 @ihavenoface

Sorry for spamming you, but some of you had no emails set so I thought I'd ask this way.
Worked with loadletter and ccd0 on 4chan x and I know ihavenoface from the Name Sync script.

On /ref/, we like flags. Since (almost) all flags have already posted on the /int/ board we wanted to add some new ones, we had various ideas but the same way as Name Sync, without embedding country data in the name field seemed to be the best way to go.

See our thread here:
http://www.ibm5100.net/ref/res/10641.html
It will be something like this:
2014-11-29--1417273640_3840x1080_scrot
But without the changed name.

We can take care of the backend, it would just be two simple php scripts connected to a database.
The problem is the userscript, see what I could manage, I can insert an additional flag but we don't have enough knowledge to proceed at this moment.

Refreshing and displaying is not a problem, the problem is attaching hooks to certain actions like updating the page and posting comments.
I've been trying for 4-5 hours today I came up blank. Well, nothing worked. I can't into JavaScript.
And preferably it should work on both the inline extension and 4chan x, I've only been looking at 4chan x.

So at this point we wanted to call in some reinforcements. Was wondering if you could help us out a bit. Anything is welcome, a push in the right direction, maybe some codesnippets, anything really.

Implement HTTPS

Currently all requests are sent to your server in plain-text. This includes the board, region, and post number. Someone listening on the network, or even intelligence agencies (worst case I guess) could use this to build up a profile of your posts.

You can get a free SSL certificate for the first year from StartSSL, and by the time that expires, the LetsEncrypt should be fully up and running so adding this would be of no additional cost to you, just a small amount of time to initially set it up on your server.

Optimizing flags

For some reason there are 16Kb flags, consider using optipng with the following options:

-o7 -strip all

Adding Scottish flags

Two Scottish flags

Edinburgh

I was going to add the Outer Hebrides but I just realised that Western Isles should be named Outer Hebrides

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.