Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More site options #18

Open
12 of 14 tasks
zekrom-vale opened this issue Jun 27, 2017 · 4 comments
Open
12 of 14 tasks

More site options #18

zekrom-vale opened this issue Jun 27, 2017 · 4 comments
Assignees

Comments

@zekrom-vale
Copy link
Owner

zekrom-vale commented Jun 27, 2017

  • beam
  • Mixer
  • dailymotion
  • hulu
  • vimeo
  • liveleak
  • break
  • netflix
  • vine
  • yahoo
  • viewster
  • .tv
  • vevo
  • veoh
    *Assuming that they use html5 video tag.
@zekrom-vale zekrom-vale self-assigned this Jun 27, 2017
zekrom-vale added a commit that referenced this issue Jun 28, 2017
It may only be avalable on the options page
zekrom-vale added a commit that referenced this issue Jun 28, 2017
@zekrom-vale
Copy link
Owner Author

Assuming they use the html video tag

@zekrom-vale
Copy link
Owner Author

<all_urls> is broken

function permReSet(trlse){
	with(document){
		getElementById('YouTube').checked= trlse;
		getElementById('Game').checked= trlse;
		getElementById('Embed').checked= trlse;
		getElementById('Twitch').checked= trlse;
		getElementById('All').checked= trlse;
		getElementById('Dailymotion').checked= trlse;
		getElementById('hulu').checked= trlse;
		getElementById('Vimeo').checked= trlse;
		getElementById('Liveleak').checked= trlse;
		getElementById('Break').checked= trlse;
		getElementById('Netflix').checked= trlse;
		getElementById('Vine').checked= trlse;
		getElementById('Yahoo2').checked= trlse;
		getElementById('Viewster').checked= trlse;
		getElementById('Dot_tv').checked= trlse;
		getElementById('Vevo').checked= trlse;
		getElementById('Veoh').checked= trlse;
	}
}

@zekrom-vale
Copy link
Owner Author

zekrom-vale commented Jun 28, 2017

Dot tv works, but it says all urls, most likely due to the quantity of matching urls. Just like the permissions for the extension itself.

@zekrom-vale
Copy link
Owner Author

getElementById('YouTube').checked= trlse;
Can be optomiaed with
document.querySelectorAll('input.perm').checked=trlse
if it does not work

for(var i in document.querySelectorAll('input.perm')){
    document.querySelectorAll('input.perm')[i].checked=trlse;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant