udp://public.popcorn-tracker.org:6969/announce
http://182.176.139.129:6969/announce
http://5.79.83.193:2710/announce
| let activeTabId, lastUrl, lastTitle; | |
| function getTabInfo(tabId) { | |
| chrome.tabs.get(tabId, function(tab) { | |
| if(lastUrl != tab.url || lastTitle != tab.title) | |
| console.log(lastUrl = tab.url, lastTitle = tab.title); | |
| }); | |
| } | |
| chrome.tabs.onActivated.addListener(function(activeInfo) { |
udp://public.popcorn-tracker.org:6969/announce
http://182.176.139.129:6969/announce
http://5.79.83.193:2710/announce
| { | |
| "name": "SyncExtension", | |
| "version": "0.1", | |
| "manifest_version": 2, | |
| "description": "Storage Sync Extension", | |
| "permissions": [ "storage" ], | |
| "browser_action": { |
| <select name="Location" id="Location" required> | |
| <option value="" disabled selected>Select The City</option> | |
| <option value="Islamabad">Islamabad</option> | |
| <option value="" disabled>Punjab Cities</option> | |
| <option value="Ahmed Nager Chatha">Ahmed Nager Chatha</option> | |
| <option value="Ahmadpur East">Ahmadpur East</option> | |
| <option value="Ali Khan Abad">Ali Khan Abad</option> | |
| <option value="Alipur">Alipur</option> | |
| <option value="Arifwala">Arifwala</option> | |
| <option value="Attock">Attock</option> |
| /* | |
| * jQuery Double Tap | |
| * Developer: Sergey Margaritov (github.com/attenzione) | |
| * License: MIT | |
| * Date: 22.10.2013 | |
| * Based on jquery documentation http://learn.jquery.com/events/event-extensions/ | |
| */ | |
| (function($){ |
| <?php | |
| class Google_Weather | |
| { | |
| public $condition; | |
| public $temperature; | |
| public $humidity; | |
| public $icon; | |
| public $wind_direction; | |
| public $wind_speed; |
| <?php | |
| function calculate_age($birthday) | |
| { | |
| $today = new DateTime(); | |
| $diff = $today->diff(new DateTime($birthday)); | |
| if ($diff->y) | |
| { | |
| return ($diff->y == 1) ? $diff->y . ' year' : $diff->y . ' years'; |
| <?php | |
| // Array with data | |
| $teams = array | |
| ( | |
| array('name' => 'Maple Leafs', 'city' => 'Toronto'), | |
| array('name' => 'Canucks', 'city' => 'Vancouver'), | |
| array('name' => 'Senators', 'city' => 'Ottawa'), | |
| array('name' => 'Canadiens', 'city' => 'Montreal'), | |
| array('name' => 'Flames', 'city' => 'Calgary'), |
| <IfModule mod_rewrite.c> | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.+)\.(\d+)\.(css|gif|jpeg|jpg|js|png|svg)$ $1.$3 [L] | |
| </IfModule> |
| <?php | |
| $periods = [ | |
| [new DateTime('8AM'), new DateTime('5PM')], // 9 hours | |
| [new DateTime('8AM'), new DateTime('5PM')], // 9 hours | |
| [new DateTime('10AM'), new DateTime('12PM')], // 2 hours | |
| [new DateTime('12PM'), new DateTime('5PM')], // 5 hours | |
| [new DateTime('7PM'), new DateTime('8PM')], // 1 hour | |
| [new DateTime('9AM'), new DateTime('4PM')], // 7 hours | |
| ]; |