This file contains hidden or 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
| if(windows.open="facebook.com" || windows.open="youtube.com") { | |
| windows.location.href = "reddit.com" | |
| } |
This file contains hidden or 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
| { | |
| "manifest_version": 2, | |
| "name": "Website blocker", | |
| "description": "This extension blocks unwanted sites.", | |
| "version": "1.0", | |
| "content_scripts": [ | |
| { | |
| "matches": ["http://www.facebook.com/*", "http://www.youtube.com/*"], |
This file contains hidden or 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
| { | |
| "manifest_version": 2, | |
| "name": "Website blocker", | |
| "description": "This extension blocks unwanted sites.", | |
| "version": "1.0", | |
| "content_scripts": [ | |
| { | |
| "matches": ["*://*.facebook.com/*", "*://*.youtube.com/*"], |
This file contains hidden or 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
| { | |
| "manifest_version": 2, | |
| "name": "Website blocker", | |
| "description": "This extension blocks unwanted sites.", | |
| "version": "1.0", | |
| "content_scripts": [ | |
| { | |
| "matches": ["https://*.facebook.com"], |
This file contains hidden or 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
| if(windows.location.href="facebook.com" || windows.location.href="youtube.com") { | |
| windows.location.href = "reddit.com" | |
| } |
This file contains hidden or 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
| windows.location.href = "reddit.com" |
This file contains hidden or 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
| windows.location.href = "reddit.com"; |
This file contains hidden or 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
| html | |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <title>reddit: the front page of the internet</title> | |
| <link href="reddit.css" rel="stylesheet"/> | |
| <script src ="reddit.js" type="text/javascript"></script> | |
| </head> | |
| <body> |
This file contains hidden or 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
| <?php | |
| $dsn= 'mysql:dbname=reddit;host:localhost'; | |
| $user='root'; | |
| $password=''; | |
| try { | |
| $dbh = new PDO($dsn, $user, $password, array(PDO::ATTR_ERRMODE => PDO:ERRMODE_WARNING)); | |
| $sql="INSERT INTO posts (id, title) VALUES (?, ?)"; | |
| } catch (PDOException $e) { | |
| print "Error!: " . $e->getMessage() . "</br>"; | |
| die(); |
This file contains hidden or 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
| <?php | |
| $dsn= 'mysql:dbname=reddit;host:localhost'; | |
| $user='root'; | |
| $password=''; | |
| $dbname='reddit'; | |
| try { | |
| $dbh = new PDO($dsn, $user, $password, $dbname array(PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING)); | |
| $sql="INSERT INTO posts (id, title) VALUES (?, ?)"; | |
| } catch (PDOException $e) { | |
| print "Error!: " . $e->getMessage() . "</br>"; |
OlderNewer