Last active
October 5, 2018 07:57
-
-
Save kyoh86/99b31c2a78ef58f99534ebf4ae673c27 to your computer and use it in GitHub Desktop.
JOBCANの各アプリを同じタブで開くようにする
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
//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