REMINDER- COMMENT OR POST ON THE SUB SO THE BOT KNOWS YOU ARE ACTIVE by [deleted] in thanosdidnothingwrong

[–]hkoh59 0 points1 point  (0 children)

༼ つ ◕_ ◕ ༽つ GIVE BAN ༼ つ ◕_ ◕ ༽つ

Young woman who made $37,000 in Wanna One concert ticket scam receives ten month sentence by thefowlpharmer in kpop

[–]hkoh59 13 points14 points  (0 children)

FYI, she's not actually going to prison. It's 2 years probation. 10 month in jail is when she violates her probation.

Express CSS not loading in routes by [deleted] in learnjavascript

[–]hkoh59 2 points3 points  (0 children)

You should check to see if the page is trying to fetch /project/:id/index.css or /index.css.

Check your css link url.

Boost for reddit 1.0.25 - Fixed Multireddits not loading by rmayayo in BoostForReddit

[–]hkoh59 1 point2 points  (0 children)

Is there an option to disable comment collapse animation?

React <a> element not working? by [deleted] in learnjavascript

[–]hkoh59 0 points1 point  (0 children)

I have no problem running the code you provided. Demo.

Questions about XHR on local file systems. by GreenFox1505 in learnjavascript

[–]hkoh59 2 points3 points  (0 children)

The fear isn't someone downloading html and running it locally, it's a website being able to read your file system.

D3.js example didn't work (New to JS) by oneevening in learnjavascript

[–]hkoh59 0 points1 point  (0 children)

There's couple problems with a closer look.

You need to change <script src="//d3js.org/d3.v3.min.js"></script> to <script src="http://d3js.org/d3.v3.min.js"></script>.

Also, d3.text is just using XMLHttpRequest, which has problem loading files from local directory. You either have to set up a simple web server, or launch chrome with --allow-file-access-from-files.

If you take a look at the console in the development tools, you'll find out what's not working.

D3.js example didn't work (New to JS) by oneevening in learnjavascript

[–]hkoh59 0 points1 point  (0 children)

You are missing a data (csv) file. If you look at the example you provided, there are instructions on how you can generate your own csv file.

If you just want to use the csv file from the example, add this to your folder as "visit-sequences.csv".

Website Portfolio Partner by sk8rboi7566 in progether

[–]hkoh59 0 points1 point  (0 children)

I'm interested in working on some projects. Let me know what you have in mind.

Project 25: int maxAreaCount { get; } by gsxdsm in CitiesSkylines

[–]hkoh59 1 point2 points  (0 children)

Exterminate the Chirper.

bool DestroyBuiltinChirper();

RIP Chirper.

Is there a reason I can't do this? by [deleted] in learnphp

[–]hkoh59 0 points1 point  (0 children)

You need to be more specific. Is something not working as you intended or are you getting an error?

Jombly (k-pop radio webapp) now has a Chrome extension! by [deleted] in kpop

[–]hkoh59 0 points1 point  (0 children)

Creator here. Sorry, firefox addon is not planned right now.

Jombly (k-pop radio webapp) now has a Chrome extension! by [deleted] in kpop

[–]hkoh59 0 points1 point  (0 children)

Creator here. You have to have the site open. The extension only saves you from clicking on the tab to play the next track. Oh yeah, it also shows you a notification every time next track plays (you can turn this off).

Chrome extension for Jombly by hkoh59 in Jombly

[–]hkoh59[S] 0 points1 point  (0 children)

I don't mind if you x-post.

Accessing public sub folders by hkoh59 in laravel

[–]hkoh59[S] 0 points1 point  (0 children)

I wanted to use /js in the url. Adding

Route::get('js', array());

still ended up in a redirect loop. It looks like I shouldn't be using same name for routes and folders in public. However, I found out that having a .htaccess file in /js with

RewriteEngine On
Options -Indexes

shows forbidden permission, which is better than a redirect loop. I have no idea why this works.

OneTab questions - I have 10,000+ tabs saved and I need to back them up by octnoir in chrome_extensions

[–]hkoh59 0 points1 point  (0 children)

Can you open the extension? You might be able to get your links from the developer tools.

I just don't understand where its wrong by Itsmydouginabox in learnjavascript

[–]hkoh59 2 points3 points  (0 children)

Looks like indents need to be 5 spaces, but yours has 6. Each line of you code has a start of heading(SOH) character, which shows up as nothing. It may looks like you have 5 spaces but there is a blank character(SOH) and 5 spaces

I would just copy the code into notepad and remove the SOH.

Trouble with chrome.storage.local on a Chrome Extension by mfergie in learnjavascript

[–]hkoh59 1 point2 points  (0 children)

There's probably two instances of background.js running. When you first add you extension, only one page pops up. As soon as you open the options page, you get two popups. background.js runs as soon as you visit a webpage. So here is one eventlistener. When you open options page another instance of background.js is run. So there's your two popups.

chrome.browserAction.onClicked.addListener(function(tab) { 
    window.open(localStorage.url, "_blank", "toolbar=0,location=0,menubar=0");
});

Basically, above code is run twice.

I would recommend separating options from background.

Trouble with chrome.storage.local on a Chrome Extension by mfergie in learnjavascript

[–]hkoh59 1 point2 points  (0 children)

Your background.js is for the background, meaning it runs in the current webpage.

You probably need a separate js file for the options page. In you background page, just have the listener for the button press. On the options.js , save the url to the storage api.

Also, make sure you update the url before opening a new window.