Skip to content

Instantly share code, notes, and snippets.

@kyoh86
Last active October 5, 2018 07:57
Show Gist options
  • Save kyoh86/99b31c2a78ef58f99534ebf4ae673c27 to your computer and use it in GitHub Desktop.
Save kyoh86/99b31c2a78ef58f99534ebf4ae673c27 to your computer and use it in GitHub Desktop.
JOBCANの各アプリを同じタブで開くようにする
//TARGET: id.jobcan.jp, ssl.wf.jobcan.jp, ssl.jobcan.jp
//DEV: https://gist.githack.com/kyoh86/99b31c2a78ef58f99534ebf4ae673c27/raw/jobcan-insite.js
//PRODUCTION: https://gistcdn.githack.com/kyoh86/99b31c2a78ef58f99534ebf4ae673c27/raw/jobcan-insite.js
(()=>{
const interval = 2000;
const get = (cl)=>Array.from(window.document.getElementsByClassName(cl));
const process = ()=>{
get('jbc-app-link').concat(get('jbcid-logo')).concat(get('logo')).forEach(i=>{i.removeAttribute('target')});
window.setTimeout(process, interval);
};
process();
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment