Forums

RS-Linkify Thread is sticky

Quick find code: 261-262-33-65181208

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Here's a basic extension I put together for the http://www.bbc.co.uk/iplayer

The page that displays the thumbnails will be zoomed to 150%

The player will be zoomed to 175%

Nothing is configurable, everything is hard coded. That's because it's just easier :)

Happy to make some adjustments if needed. As far as making it configurable, that will take some time but I might work on that down the track.

Since this isn't hosted on the app store this is what you need to do.

1. Download this zipped folder http://puu.sh/pD1Iy.zip and extract it somewhere. For example, your documents would be a good place.

2. In chome go to
chrome://extensions/


3. Enable Developer mode http://i.imgur.com/gMomn3U.png

4. Click this button http://i.imgur.com/YStAXLK.png

5. Browse to the folder location
C:\Users\*******\Documents\zoom


and that's it :)

You should be able to test out by visiting http://www.bbc.co.uk/iplayer.

If its not doing what you want it do or it needs some tweaks, I'm happy to make some changes :)

I'm going to post the code below, that way you can create the files manually but you'll still need the zipped file for the icon images.

23-Jun-2016 14:13:51

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
...continued


The code in case you wish to create the extension from scratch or just see what's going on :)

manifest.json
[code]{
"manifest_version": 2,
"name": "Zoomify",
"version": "1.0.0.0",
"browser_action": {
"default_icon": {
"19": "images/icon19.png",
"38": "images/icon38.png"
},
"default_title": "Zoomify"
},
"background": {
"scripts": ["background.js"],
"persistent": false
},
"permissions": ["tabs", "http://www.bbc.co.uk/iplayer*"],
"icons": {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
}
}
[/code]

background.js
[code]chrome.tabs.onUpdated.addListener(function (tabId, changeinfo, tab) {
"use strict";

var url = tab.url,
zoomVal = 1.75; /* zoom value for player */

if (url.indexOf('http://www.bbc.co.uk/iplayer') === 0) {
if (url === 'http://www.bbc.co.uk/iplayer') {
zoomVal = 1.5; /* zoom value for thumbs page */
}

chrome.tabs.getZoom(tabId, function (zoomFactor) {
if (zoomFactor !== zoomVal) {
chrome.tabs.setZoom(tab.id, zoomVal);
}
});
}
});
[/code]

23-Jun-2016 14:13:58 - Last edited on 23-Jun-2016 14:24:12 by Indecent Act

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Glad it's working the way you want. The zoom api worked pretty much as I expected, it was also nice to play with something new.

I would like to make some options for it. But I have RS Linkify, and another extension I'm developing as well. So I need to get on top of things before I take too much on. Depending on how things go, Zoomify could end up on the app store eventually.

I'm going to enjoy my cuppa now :)

23-Jun-2016 15:36:41

Indecent Act

Indecent Act

Posts: 7,456 Rune Posts by user Forum Profile RuneMetrics Profile
Xinix Xaxx said :
THANK YOU for the title change!!! I love it! I've been coffee_sloth on-line for almost 20 years pretty much everywhere but here.

You're welcome, actually Coffee Sloths are very welcome here :)

I was just about to post to say I'd updated your title, but it looks like you're way ahead of me.

Cuppa time :)

https://s-media-cache-ak0.pinimg.com/564x/de/31/eb/de31eb24723baa97e85c3d72b535826d.jpg


--------------------------------------------------

Oh Rowley,

I forgot to mention about the annoying warning when starting chrome with unpacked extensions. I think I can get rid of that only by hosting on the app store. So I might host it as an unlisted app. That will get rid of the warning and make it updatable (not sure if updatable is even a word). Anyway I'll look into doing this soon(ish) :)

24-Jun-2016 03:37:19 - Last edited on 24-Jun-2016 03:37:48 by Indecent Act

Hugopluks13

Hugopluks13

Posts: 9,931 Rune Posts by user Forum Profile RuneMetrics Profile
Hey Indy (and other),

The answer to this question probably isn't going to be RS-Linkify related, hope you don't mind.

A pretty big problem on Twitch are hijacking streams. People impersonating Jagex or popular streamers. Twitch takes them out very quickly (within minutes) after they are reported, but the problem is that they need to be reported first (this is an assumption).

What would be lovely is if we had some kind of notification system to notify us when streams that meet certain conditions go live (Like having certain words in the title or going above a certain number of views).

Do you know if something like this would be possible?
You will never get anything for free. Anyone claiming that is trying to scam, lure or hijack you.
Twitter: @Hugopluks13 || Currently playing on: Rhydon || Dutch

26-Jun-2016 12:58:09

Quick find code: 261-262-33-65181208 Back to Top